Changes between Initial Version and Version 1 of Ticket #19958, comment 3
- Timestamp:
- 09/30/2013 10:00:50 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19958, comment 3
initial v1 1 1 What about instead putting a filter on the arguments for the wp_dropdown_pages call that produces the list of pages to choose from (line 96 in wp-admin/options-reading.php)? A developer could then use : 2 3 4 ---- 2 {{{ 5 3 function filter_my_cpt($args) { 6 4 $args[post_type] = 'cpt-slug';[[BR]] 7 5 8 6 //to also maintain pages: $args[post_type] = 'pages, cpt-slug' 9 } [[BR]]10 add_filter('options-front-page' , filter_my_cpt'); [[BR]]7 } 8 add_filter('options-front-page' , filter_my_cpt'); 11 9 add_filter('options-posts-page' , filter_my_cpt'); 12 ---- 10 }}}