{"id":23921,"date":"2013-06-27T12:49:55","date_gmt":"2013-06-27T12:49:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/features\/"},"modified":"2014-04-08T21:56:27","modified_gmt":"2014-04-08T21:56:27","slug":"features","status":"closed","type":"plugin","link":"https:\/\/fr-be.wordpress.org\/plugins\/features\/","author":12524771,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.0.2","stable_tag":"0.0.2","tested":"3.7.41","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Features","header_author":"KLicheR","header_description":"","assets_banners_color":"","last_updated":"2014-04-08 21:56:27","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/---","rating":5,"author_block_rating":0,"active_installs":60,"downloads":3845,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":{"":"<p>Make sure to do a backup of your <em>features_options_data.php<\/em> file before updating this plugin.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.1","0.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[151,153,4151,29407,10009],"plugin_category":[59],"plugin_contributors":[84062],"plugin_business_model":[],"class_list":["post-23921","plugin","type-plugin","status-closed","hentry","plugin_tags-backup","plugin_tags-database","plugin_tags-migrate","plugin_tags-vcs","plugin_tags-versioning","plugin_category-utilities-and-tools","plugin_contributors-klicher","plugin_committers-klicher"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/features.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>A plugin inspired by Drupal's modules (<a href=\"https:\/\/drupal.org\/project\/features\">Features<\/a> and <a href=\"https:\/\/drupal.org\/project\/strongarm\">Strongarm<\/a>) that enable the versioning of options in Wordpress.<\/p>\n\n<p>The general idea is to export a maximum amount of settings and structural content of the database to files to be able to deploy them through <a href=\"https:\/\/en.wikipedia.org\/wiki\/Revision_control\">VCS<\/a> (like SVN, GIT, Mercurial).<\/p>\n\n<p>For now, the only exportable settings are the entries of the \"wp-options\" table.<\/p>\n\n<h4>Do you need this?<\/h4>\n\n<p>If you're the only developer working on you're website, you're having only one development environment (production server) and you do not use <a href=\"https:\/\/en.wikipedia.org\/wiki\/Revision_control\">VCS<\/a>: no, the only things you need is to close your eyes, cross your fingers and hope that everything go fine.<\/p>\n\n<h4>How to use it?<\/h4>\n\n<p>In the admin, a new page called <em>Features<\/em> is accessible under the <em>Tools<\/em> menu. This page list all the settings contain in your <em>features_options_data.php<\/em> file. If one of the setting in your database has not the same value of the one in the file, the <em>Revert<\/em> button will be accessible to click and a text field will show you the value from the database.<\/p>\n\n<ul>\n<li>If you want to <strong>replace<\/strong> what is in the <strong>database<\/strong> with the value from the file, click the <em>Revert<\/em> button.<\/li>\n<li>If you want to <strong>replace<\/strong> what is in the <strong>file<\/strong> with the value from the database (for versioning), copy the content of the text field to the file.<\/li>\n<\/ul>\n\n<h4>Add a new option to the filter<\/h4>\n\n<p>To add a new option from the <em>wp_options<\/em> table, use the <em>features_options<\/em> filter to alter the <em>options<\/em> array: column value as the <em>key<\/em> and the <em>option_value<\/em> column value as the <em>value<\/em>.<\/p>\n\n<h4>What's next?<\/h4>\n\n<p>This plugin is under development. If you know what your doing, you can use it and there will be an upgrade path, at least, a manuel one.<\/p>\n\n<p>Like <a href=\"https:\/\/drupal.org\/project\/features\">Features<\/a>, the goal would be to have plugins generation for <em>features<\/em> instead of manually edit the <em>features_options_data.php<\/em> file of the plugin.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>features<\/code> plugin directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>","raw_excerpt":"A plugin inspired by Drupal&#039;s modules (Features and Strongarm) that enable the versioning of options in Wordpress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23921"}],"author":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/klicher"}],"wp:attachment":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23921"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23921"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23921"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23921"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23921"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}