Forums

add_filter confusing (1 post)

  1. scruffian
    Member
    Posted 7 months ago #

    I am confused about filters, why does this work:

    function get_the_author_description2() {
    	return 'test';
    }
    add_filter('get_the_author_description', 'get_the_author_description2');

    but this one does not:

    function get_the_author_firstname2() {
    	return 'test';
    }
    add_filter('get_the_author_firstname', 'get_the_author_firstname2');

    Confusing!

    I know these are depreciated functions, but the plugin I am trying to override is using them.

    Thanks

Reply

You must log in to post.

About this Topic

Tags