F2P Filter: Alter Post Content Filter Priority
There are many other plugins that alter the post content or append to it. This can cause conflicts when used with WP RSS Aggregator, resulting in either our or the other plugin not adding or modifying the content.
The filter below will help overcome such problems. It allows you to change the filter priority for our plugin, making the plugin’s content modifications apply before any other plugins, or after.
The default priority for WP RSS Aggregator is ten thousand (10,000). Higher priority numbers will make content changes apply later. Smaller priority numbers will make the plugin’s content changes apply earlier.
add_filter( 'wprss_ftp_post_content_filter_priority', 'my_wprss_ftp_priority' ); function my_wprss_ftp_priority( $priority ) { return 10000; // Ten thousand is the default priority for WP RSS Aggregator. }
How do I add this to my site?
Follow the step-by-step instructions below to add this filter to your WordPress site.
- Copy the code you need from above.
- Go to your WordPress site's dashboard.
- Go to Plugins > Add New.
- Search for Code Snippets, then install and activate the plugin.
- Once installed and activated, go to Snippets in your dashboard menu.
- Click on Add New.
- Add a Title, which could be the title of this article.
- Paste the code you copied in step 1 to the Code section.
- Add a Description or Tags if you wish to do so. It is not required.
- Click on Save Changes and Activate to save the filter and activate it.
- Or click on Save Changes to save the filter and activate it later.
- Your action or filter is now stored and active on your site.