• Resolved ssandison

    (@ssandison)


    It would be great if you could add a filter for the post content after shortcodes are processed but before HTML tags are stripped. I’m not sure if this is already possible but I couldn’t see a way to do it.

    The reason I’d like this is because I am using SiteOrigin’s Page Builder plugin for my page content. This means all the post content is widget based via shortcodes. I’d like to be able to filter out specific content generated by my widgets using a start and end HTML comment to prevent the index of some parts of the page.

    My recommendation for the filter:

    $contents = apply_filters( 'relevanssi_post_content_after_shortcodes', $contents, $post );

    To be added to lib/indexing.php just before or after the following code:

    $contents = relevanssi_strip_invisibles( $contents );

    Is this possible?

    • This topic was modified 5 years ago by ssandison.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ability to filter content after shortcodes are processed’ is closed to new replies.