[Support request] Using Hook Element for Custom Author Link on Posts

Home Forums Support [Support request] Using Hook Element for Custom Author Link on Posts

Home Forums Support Using Hook Element for Custom Author Link on Posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2339149
    Stuart

    Hi there,

    I’ve realized with GP Premium I can delete Code Snippets as I’m only using it for this one here:

    add_filter( ‘generate_post_author_output’, function( $output ) {
    return ‘Author: My Name‘;
    } );

    Can I add this code to a Hook Element like this instead? (https://imgur.com/a/ENkPJF3)

    Thanks!

    #2339788
    David
    Staff
    Customer Support

    Hi there,

    unfortunately not, a filter hook snippet needs to be added using code snippets or a child theme functions.php

    #2340076
    Stuart

    I understand, thank you.

    #2340323
    David
    Staff
    Customer Support

    You’re welcome

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