Title: [Dev] add filter after WordPress formatting
Last modified: August 22, 2016

---

# [Dev] add filter after WordPress formatting

 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/dev-add-filter-after-wordpress-formatting/)
 * Hi there,
 * the ads were not inserted into my posts because I simply don’t format each post
   with `<p>`. WordPress is doing that for me with the formatting function [wpautop](http://codex.wordpress.org/Function_Reference/wpautop).
   Therefore my HTML is fine with `<p>'s` on the frontend.
    So what’s the point?
   Your plugin hooks into the_content before the `<p>` are automatically added but
   also checks for `<p>`. In my case at that point in time there are 0 `<p>` and
   so the plugin doesn’t adds an ad. The reason for this is that wpautop has the
   priority 12 and your filter for `the_content` 10 (default priority).
 * In summary please change
    `add_filter('the_content', 'process_content');` to `
   add_filter('the_content', 'process_content', 25);`
 * [https://wordpress.org/plugins/quick-adsense/](https://wordpress.org/plugins/quick-adsense/)

The topic ‘[Dev] add filter after WordPress formatting’ is closed to new replies.

 * ![](https://ps.w.org/quick-adsense/assets/icon-256x256.png?rev=2682075)
 * [Quick Adsense](https://wordpress.org/plugins/quick-adsense/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-adsense/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-adsense/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-adsense/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-adsense/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-adsense/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [No3x](https://wordpress.org/support/users/no3x/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/dev-add-filter-after-wordpress-formatting/)
 * Status: not resolved