{"id":141568,"date":"2021-05-26T11:29:04","date_gmt":"2021-05-26T11:29:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/dotenv\/"},"modified":"2021-05-28T13:06:24","modified_gmt":"2021-05-28T13:06:24","slug":"dotenv","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/dotenv\/","author":8764678,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"1.0.3","tested":"5.7.15","requires":"5.2","requires_php":"5.6","requires_plugins":"","header_name":"dotenv","header_author":"Brad Parbs","header_description":"Set WordPress options from a .env file.","assets_banners_color":"b7b7b7","last_updated":"2021-05-28 13:06:24","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/bradparbs.com\/","rating":5,"author_block_rating":0,"active_installs":20,"downloads":3603,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":{"1.0.0":{"tag":"1.0.0","author":"bradparbs","date":"2021-05-26 11:28:44"},"1.0.1":{"tag":"1.0.1","author":"bradparbs","date":"2021-05-28 00:46:27"},"1.0.2":{"tag":"1.0.2","author":"bradparbs","date":"2021-05-28 01:48:18"},"1.0.3":{"tag":"1.0.3","author":"bradparbs","date":"2021-05-28 13:06:24"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2538828,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2538828,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2538828,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2538828,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3018,3017,2275,7318,3972],"plugin_category":[59],"plugin_contributors":[80879],"plugin_business_model":[],"class_list":["post-141568","plugin","type-plugin","status-publish","hentry","plugin_tags-config","plugin_tags-configuration","plugin_tags-developer","plugin_tags-environment","plugin_tags-tools","plugin_category-utilities-and-tools","plugin_contributors-bradparbs","plugin_committers-bradparbs","plugin_committers-surfboards"],"banners":{"banner":"https:\/\/ps.w.org\/dotenv\/assets\/banner-772x250.png?rev=2538828","banner_2x":"https:\/\/ps.w.org\/dotenv\/assets\/banner-1544x500.png?rev=2538828","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dotenv\/assets\/icon-128x128.jpg?rev=2538828","icon_2x":"https:\/\/ps.w.org\/dotenv\/assets\/icon-256x256.jpg?rev=2538828","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Any <code>WPENV_<\/code> prefixed variables in the <code>.env<\/code> will be used to override the WordPress options. For example, if you'd like to set a specific environment to \"Discourage search engines from indexing this site\", you can add <code>WPENV_BLOG_PUBLIC=0<\/code> to your <code>.env<\/code> file.<\/p>\n\n<ul>\n<li><p>Any option in the <code>wp_options<\/code> table or retrieved by <code>get_option()<\/code> can be set this way.<\/p><\/li>\n<li><p>You can define keys either as <code>WPENV_BLOGDESCRIPTION<\/code> or as <code>WPENV_blogdescription<\/code>, both will work.<\/p><\/li>\n<li><p>If you'd like to define the location of your <code>.env<\/code> file, rather than the plugin looking for it, you can filter <code>dotenv_location<\/code> to be a directory path.<\/p><\/li>\n<li><p>You can also change the <code>WPENV_<\/code> prefix by filtering <code>dotev_key_prefix<\/code> to be a different prefix.<\/p><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ul>\n<li>Install the plugin.\n\n<ul>\n<li>Add a <code>.env<\/code> file either in the root of your site or one level above.<\/li>\n<li>Add any WordPress options keys to filter with the prefix <code>WPENV_<\/code><\/li>\n<\/ul><\/li>\n<\/ul>","raw_excerpt":"A WordPress plugin to set WordPress options from a .env file.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/141568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=141568"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bradparbs"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=141568"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=141568"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=141568"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=141568"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=141568"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=141568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}