Use custom fields for author info (with Co-Authors Plus)
-
This is driving me crazy!
I want to use custom fields for the author url and bio. I can do this by editing /fb-instant-articles/compat/class-instant-articles-co-author-plus.php. Of course this is bad practice as my changes will be overwritten when (if?) the plugin is updated.
So, I’m trying to put my changes into my functions.php file, by removing the co-authors-plus function “authors” and replacing it with my own function.
I’m stuck on the first part – how to remove the filter. Since it’s in a class, this is what I’ve tried:
global $Instant_Articles_Co_Authors_Plus; remove_filter( 'instant_articles_authors', array($Instant_Articles_Co_Authors_Plus, 'authors'). 10 );
But it doesn’t remove the filter/function as desired.
Any help/ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Use custom fields for author info (with Co-Authors Plus)’ is closed to new replies.