Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Filter for any custom post type Otions page
- * // array example:
- // array( 'page=acf-options-11-videos' => 'videos' )
- // the 'flo_theme_videos_options_page' will be build using 'flo_theme_%array_key%_options_page'
- // where %array_key% is taken from the array defined above (in this example 'videos')
- *
- */
- add_filter('flo_any_custom_post_option', 'flo_cannes_any_custom_post_option');
- function flo_cannes_any_custom_post_option() {
- // return array sample:
- // array('videos' => 'page=acf-options-11-videos' => 'flo_theme_videos_options_page')
- return array(
- 'page=acf-options-12-books' => 'books' // in this case 'page=acf-options-12-books' is the URL param from the Books options page: https://i.imgur.com/DyboEnx.jpg
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement