Skip to content

How can I remove autop filter from shortcode #181

@rigids

Description

@rigids

Following the documentation I created a shortcode and using view in controller class to call a twig file. This adds
break and paragraph tag which I am looking to remove I tried using remove_filter( 'the_content', 'wpautop' ); but I suppose I am adding it at incorrect place. Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions