• 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?

    https://www.ads-software.com/plugins/fb-instant-articles/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter terriz

    (@terriz)

    Forgot to say I am indeed using the Co-Authors Plus plugin.

    Thread Starter terriz

    (@terriz)

    I finally gave up and changed the plugin code (which I will now have to do every time the plugin is updated – sadly it doesn’t seem it will be often.)

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.