Yes set priority to something like 999 or something really high. The default priority is 10, and you currently have yours at 1 and therefore will occur first.
The priority is explained in the codex: http://codex.wordpress.org/Function_Reference/add_filter notably:
$priority
(integer) (optional) Used to specify the order in which the functions associated with a particular action are executed. Lower
numbers correspond with earlier execution, and functions with the same
priority are executed in the order in which they were added to the
filter.Default: 10
Related Posts:
- Loading template files from a subfolder in my theme?
- How can I show more than 15 themes at a time in the admin menu?
- Make it possible to pick a color theme for specific pages
- OptimizePress Theme Overriding add_filter page_template
- Posts as filtered list – expandable
- Using filter in the widget causes fatal error
- Fix warning: Missing argument
- Don’t prepend WordPress base url to image paths
- Are immediately-called actions not usable in themes?
- Firebug and Chrome rendering two body tags
- how to add version of style.css in wordpress
- What is the role and history of the $content_width global variable?
- How to set thumbnail image for a (child) theme
- Add a page outside of the current theme?
- How to create a live demo page for a theme? [closed]
- Is it possible to stop a theme activation when a certain plugin is not activated
- add image size still doesn’t work even after regenerating thumbnails
- Best location for theme translation files
- Two Navigation Menus in Themes Produce the same menus?
- How can I customize the search results in Bones theme?
- How to develop a theme while having another show up
- When does WordPress wrap inline scripts in CDATA?
- Being asked to update a theme that I don’t have
- Switch to other theme at URL
- How to go about pre generating css file with variables from theme options
- How to load a different theme for categories?
- How can I create an “excerpt” with text that won’t be displayed in the post itself?
- How to change sidebar per page?
- Add a series of checkboxes to theme options
- WordPress Theme Development Seemingly Awful Partitioning of Includes?
- Hide default “Recent Comments” Widget if there are no comments yet
- Theme Check warning wrong direcory for theme
- Static page not working
- Style the archives/category sidebar widget via theme
- I get the following message The uploaded file could not be moved to /home/reascom/public_html/wp-content/uploads/2012/07 [closed]
- Custom CSS doesn’t work in edit mode
- Remove transparancy in Sydney theme’s headerimage
- Browser back button does not work on firefox and safari [closed]
- Twenty fifteen theme – change responsive menu condition
- Getting 503 on various files
- Port existing Bootstrap site to WordPress?
- stylesheet is not readable error after installation
- GPL and intellectual or exclusive ownership
- Updating / Transferring site
- WordPress root directory change + Theme directory change
- How do I understand which page of my theme is being loaded?
- What Generated Classes and IDs That Is Always Used On All Themes?
- Adding Sidebars in WordPress Theme
- Error 404 for JQuery import “jquery-1.10.2.min.map”
- simplified explanation on child themes?
- Calling external Libraries in WordPress
- Using the same database on another Subdomain
- How to add more default colors?
- On a Https site, Css and Js Url are back to http after redirect the site
- Theme folder doesnt exist
- WordPress activate theme error $pagenow
- Increase content area width in TwentyFourteen [closed]
- Undefined variable error in theme option after updating theme [closed]
- Does Jetpack store comments in local database also? [closed]
- Comments not displaying after changing theme
- Theme Translation?
- Two column layout in WordPress?
- List of categories instead of dropdown menu selector in admin options
- WordPress doesn’t recognise created theme
- Query for all themes?
- How can I show some standard html code across any theme I install?
- Losing theme customization when switching from a theme to a child
- Problem of not changing the front and bottom of the Woodmart template by activating the really simple ssl pro plugin in WordPress
- Please help me clear my confusions about WordPress
- What is the correct way to set up a staging server and use github for version control?
- Override category archive page title (not the head title)
- How can I theme or style the lost password page without a plugin?
- Custom homepage with recent blog posts
- Dynamic image for Jumbotron on WordPress Custom Theme
- How to implement theme option to change bootstrap 4 container from .container to .container-fluid
- how make wp include urls as https?
- how to costume title single page
- use a Thumbnail size in post
- Why does WordPress Editor Only Use Half the Box?
- 500 Internal Errors
- Installing Theme from uploaded file. Not uploaded theme?
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- Where can I find a theme that has a big banner
- Strange Theme Error – parent style occasionally showing though child theme
- WordPress theme not updating in Other browsers
- WP-CLI wp theme install url PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
- Site broken after deleting inactive themes [closed]
- Can i add wordpress editor to my custom theme option? [closed]
- Does WordPress provide themes_api function?
- Where do URI files come from?
- How to show tags in posts with a theme that does not do it
- Converting HTML5 to XHTML
- Best way to include pagination in a theme [closed]
- What happens to bespoke page template references on theme change?
- How to change the standard width of a page
- Is it possible to dynamically show different themes for different users? [duplicate]
- Why does WP theme not look like promoted? [closed]
- Remove image next to header image on WellExpo theme [closed]
- How do I get rid of the Mindblown and the book recommendations?
- Adding PHP code to single template in 2023 edition of WordPress theme