Archived topic
Using Hook Element for Custom Author Link on Posts
3 replies · Started by Stuart on September 10, 2022
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!
Hi there,
unfortunately not, a filter hook snippet needs to be added using code snippets or a child theme functions.php
I understand, thank you.
You're welcome