[Resolved] Replace Content Hook

Home Forums Support Replace Content Hook

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1484064
    Clayton

    Hey guys,

    I’m trying to use and Element to output some custom fields which is working fine but I’d like to output the element content inside the Entry Content div (which would be the proper markup). There is no option for a hook that replaces that content but only insert before or after (outside the entry content div). Is this possible with GeneratePress elements?

    Thanks,
    Clayton

    #1484546
    David
    Staff
    Customer Support

    Hi there,

    no its no possible to use an Element ( action hook ) to add to the_content.
    You would need to use the_content() filter hook:

    https://developer.wordpress.org/reference/hooks/the_content/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.