The theme_page_templates filter is not available anymore, please use the theme_templates filter instead.
add_filter( 'theme_templates', 'filter_template_dropdown' );
Related Posts:
- Load different template file when condition met?
- How Can I Have A URL Changed Based on the Originating URL?
- Problem getting single_template filter to work – I want to serve a different single.php file for posts in a certain category
- How to add attributes to tag when template cannot be directly modified
- I can not include page to wordpress function add_filter, the_content
- Adding a filter to comments_template
- Change the template when the user is not logged in using page_template filter (it does not work)
- Shortcode / plugin with custom (flexible) output
- output custom Posts on a Page
- How to redirect template_directory to subdomain relativ url?
- Would like to use hook or filters to customize email templates
- How can I filter same content in page
- the_content filter not working when Jetpack activated. Any idea?
- Show child theme for users on specific IP
- if i put the code in my theme’s function.php file can it work?
- How could I create real-time filtering in this case?
- Replace audio links with jplayer using the_content filter
- Sorting a specific taxonomy by archive date using URL
- Give “Read More” precedence over excerpt() word count
- What hooks to hook onto for automatic cache clearing
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- How to customize category_description()?
- Add Bootstrap Classes to Recent Posts Widget
- Add filter to get_posts
- How can I output all apply_filters and do_action?
- Override has_post_thumbnail function
- How to allow code block in wordpress comments
- Is it possible to override the default Gallery Settings form?
- remove_action: how to access to a method in an child class?
- Set default value for “Additional CSS class(es)” for specific block types
- Filtering a list of objects with ‘OR’ on the same field
- Excerpt is being added above the content, but it should be after it
- WordPress add script with custom type (x-jquery-tmpl)
- Woocomemrce order and registration fileds to UPPERCASE
- add_filter to wp_nav_menu_objects having no impact
- How to filter bbPress replies (content)?
- Change login CSS
- How to redirect non-logged in users to login with post_password_required()
- Trimming a custom field to a length
- How to add nonce tag to inline script for CSP
- Filter content for get_the_content()
- Using add_filter to modify a public function of a class
- How to hide/remove GhostKit component panel in gutenberg block inspector
- Change user nicename without sanitize
- How to override include_once pointed file using add_filter?
- How to strip out javascript in wp_posts `post_content`
- WordPress removing slashes from shortcode output
- Register new user, assign custom role then send email
- What would cause the gettext filter to not work for a given text domain?
- pre_get_posts to hide everywhere posts from “Archive” category
- Strip $before & $after strings from a page title
- How to remove shortcode(s) from WYSIWYG Page editor for Non Admins
- What is the action or filter for adding information under the Permalink in Edit Post/Page?
- add after content don’t work
- Adding a filter to related posts not working
- need correction with a snippet in functions.php [closed]
- conditional search
- Filter “Your latest posts”
- Sql query does not work well
- Hide certain product filters from specific product categories
- WordPress Gutenberg core/heading block (wp-block-heading)
- Add an attribute to the root from functions.php with add_filter
- Removing menus from users other than the administrator
- Can’t understand apply_filter logic
- add_action with associative array
- Why does wp_die() not work when inside a namespace?
- Apply pre_get_posts filter in a certain moment (just for a particular block of posts)
- Remove image of srcset
- Modify oembed code conditionally
- Set post featured image to author image
- How to Change the WordPress Locale with the ‘locale’ Filter?
- meta box loop problem with a search filter
- How to make the show as a button?
- Modify Default URL for /wp-includes/js/wp-emoji.js?ver=4.6.1
- List all image sizes still getting disabled sizes
- Read More in the actual excerpt
- wp_editor customization
- What problems could happen if I replaced add_filter and add_action with the function calling
- WP REST API v2. filters doesn’t work
- posts_results filter function memory errors
- Adding to an array & passing it through do_action/apply_filters
- Is it possible to include the add_filter() function within a shortcode function
- Activate short codes for all post queries?
- Save something to global var in add_filter
- Loading a sidebar on an Ajax call
- the_excerpt() does not work with has_excerpt()?
- filter on the_content stopped working when I updated to WP 3.6.1
- Replace Paid Shipping Method With Free Shipping Method WooCommerce [duplicate]
- Wrapping Featured Image on Add/Edit Page in div?
- Clean/filter HTML inserted to post content by XML RPC
- how to localize the number of wordpress post views?
- Is it possible to make get variable out of filter in Class?
- NextGEN Gallery: Adding drop-down menu widget to gallery view without modifying plugin code [closed]
- How do you disable the verification process of user email changes?
- Modify the third (context) parameter in a filter?
- Filter widget_pages_args not working in Pages Widget
- Using the REST API filter, including two meta_queries breaks the response for one custom post type
- How do I query Pending posts?
- Load More : Admin Ajax 400 Bad request, returning 0
- How to add placeholder into comment form textarea?