{"id":8059261,"date":"2016-02-01T14:49:10","date_gmt":"2016-02-01T14:49:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/works-out-of-the-box-easy-to-customize\/"},"modified":"2016-09-03T04:26:27","modified_gmt":"2016-09-03T04:26:27","slug":"works-out-of-the-box-easy-to-customize","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/works-out-of-the-box-easy-to-customize\/","title":{"rendered":"Works out of the box, easy to customize"},"content":{"rendered":"<p>If you want this to apply to custom post types, simply modify the following line in the plugin:<\/p>\n<pre><code>function mypo_parse_query_useronly( $wp_query ) {\n    if ( strpos( $_SERVER[ &#039;REQUEST_URI&#039; ], &#039;\/wp-admin\/edit.php&#039; ) !== false ) {<\/code><\/pre>\n<p>To include the endpoint of the edit page for the custom post type, like so:<\/p>\n<pre><code>function mypo_parse_query_useronly( $wp_query ) {\n    if (\n    strpos( $_SERVER[ &#039;REQUEST_URI&#039; ], &#039;\/wp-admin\/edit.php&#039; ) !== false\n    ||\n    strpos( $_SERVER[ &#039;REQUEST_URI&#039; ], &#039;\/wp-admin\/edit.php?post_type=[POST TYPE SLUG]&#039; ) !== false\n) {<\/code><\/pre>\n<p>You can add as many custom post types separated by OR operators &#8220;||&#8221; as you&#8217;d like.<\/p>\n","protected":false},"template":"","class_list":["post-8059261","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8059261","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\/8059261\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8059261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}