• Resolved bones852

    (@bones852)


    Hello!
    Awesome plugin, helped a lot, thank you! But I have a problem:

    When I get content of a page plugin DOES filter it. In “the_content” filters list there IS wp-Typography hooked function. But when I try to get content of a post through AJAX plugin doesn’t filter it. In PHP function that returns data to jQuery I get post content throught $post->post_content, then apply “the_content” filters to it and wp-Typography filter doesn’t filter. In fact, there is no wp-Typography hooked function in “the_content” filters list.

    https://www.ads-software.com/plugins/wp-typography/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pepe

    (@pputzer)

    Ah yes, no filters are enabled on the admin side. AJAX is always handled via /wp-admin/wp-ajax.php. You have to call WP_Typography::get_instance() apply the WP_Typography::process method to the post content.

    Thread Starter bones852

    (@bones852)

    That worked, thank you!

    Plugin Author pepe

    (@pputzer)

    Glad I could be of help. I’ll be adding that to the FAQ – I know the API is very sparsely documented at the moment.

    PS: If you’d like to support wp-Typography, a review would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doesn't work when try to apply "the_content" filters’ is closed to new replies.