{"id":53090,"date":"2016-12-23T13:41:45","date_gmt":"2016-12-23T13:41:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/enforce-featured-image\/"},"modified":"2016-12-23T13:41:45","modified_gmt":"2016-12-23T13:41:45","slug":"enforce-featured-image","status":"publish","type":"plugin","link":"https:\/\/nl.wordpress.org\/plugins\/enforce-featured-image\/","author":5941287,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.3","stable_tag":"0.1.3","tested":"4.7.33","requires":"4.4","requires_php":"","requires_plugins":"","header_name":"Enforce Featured Image","header_author":"Nashwan Doaqan","header_description":"","assets_banners_color":"","last_updated":"2016-12-23 13:41:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/nash-ye\/wp-enforce-featured-image","header_author_uri":"http:\/\/nashwan-d.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1037,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.3"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[83,838,1795,133,2894],"plugin_category":[50],"plugin_contributors":[80699],"plugin_business_model":[],"class_list":["post-53090","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-featured","plugin_tags-featured-image","plugin_tags-image","plugin_tags-post-thumbnail","plugin_category-media","plugin_contributors-alex-ye"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/enforce-featured-image.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Enforce Featured Image is an API to enforce certain post types to be published with a featured image with certain dimensions if specified.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Write an another plugin file, or paste the example below in your theme <code>functions.php<\/code> file:<\/p>\n\n<pre><code>if ( class_exists( 'Enforce_Featured_Image' ) ) {\n    Enforce_Featured_Image::enforce_on_post_type( 'post', array(\n        'min_width'                =&gt; 640,\n        'min_height'               =&gt; 300,\n        'force_on_published_posts' =&gt; false,\n    ) );\n}\n<\/code><\/pre>\n\n<p>Note: You can use <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\">Code Snippets<\/a> plugin to add the code snippets to your site.<\/p>\n\n<h4>Credits<\/h4>\n\n<p>This plugin is based on <a href=\"https:\/\/wordpress.org\/plugins\/force-featured-image\/\">Force Featured Image<\/a> plugin by XWP.<\/p>\n\n<h4>Contributing<\/h4>\n\n<p>Developers can contribute to the source code on the <a href=\"https:\/\/github.com\/nash-ye\/wp-enforce-featured-image\">Github Repository<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload and install the plugin<\/li>\n<li>Use the plugin API to powerful your project.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>The Initial version.<\/li>\n<\/ul>","raw_excerpt":"Enforce certain post types to be published with a featured image with certain dimensions if specified.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/53090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=53090"}],"author":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/alex-ye"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=53090"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=53090"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=53090"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=53090"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=53090"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=53090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}