{"id":5949514,"date":"2015-03-27T18:59:31","date_gmt":"2015-03-27T18:59:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp-admin-script-enqueue\/"},"modified":"2016-08-22T19:06:18","modified_gmt":"2016-08-22T19:06:18","slug":"wp-admin-script-enqueue","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp-admin-script-enqueue\/","title":{"rendered":"WP Admin Script Enqueue"},"content":{"rendered":"<p>Our edit team would like to use the plugin on pages outside of new and edited posts. I noticed around line 122 of <code>getty-images.php<\/code>:<\/p>\n<p><code>global $pagenow;<\/code><br \/>\n<code>if( $pagenow != &#039;post.php&#039; &amp;&amp; $pagenow != &#039;post-new.php&#039; )<\/code><br \/>\n<code>return;<\/code><\/p>\n<p>Would there be any way to utilize a filter to determine a list of acceptable pages that the plugin could be run on? If you felt this was reasonable let me know if there was a way to contribute to the plugin.<\/p>\n<p>Thanks!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/getty-images\/<\/p>\n","protected":false},"template":"","class_list":["post-5949514","topic","type-topic","status-closed","hentry","topic-tag-add_filter","topic-tag-admin_enqueue_scripts","topic-tag-getty"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5949514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5949514\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5949514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}