WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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');


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


share|improve this question
These filters do not exist.. You can check the full filters list in here: codex.wordpress.org/Plugin_API/Filter_Reference - how about telling me what and where do you want to echo that 'test' ?? – Sagive SEO Oct 24 '11 at 0:30
Thanks. I am using a child of the twentyeleven theme, which might be why the author description works. What I am trying to do is hook into the "Just Another Author Widget" to display the post date in the widget. – scruffian Oct 24 '11 at 20:35
Sorry man.. this plugin doesent work on my website at all (tried it) but i think if it works on your inatalltion you can just edit the plugin file and in any case dont understand what post?? this is supposed to show author details right? is is this on? --- > wordpress.org/extend/plugins/just-another-author-widget/ – Sagive SEO Oct 24 '11 at 21:11
thanks for all your help. i want to avoid editing the plugin directly if I can, so that I can keep it up to date. If I want to hook into the functions that return author data, is there a way to do that? – scruffian Oct 24 '11 at 21:32

Maybe the theme you're using has created custom functions that make your code above work. As Sagive SEO notes it doesn't appear to be a valid tag. You'll need to just commit to learning the code if you really want to understand how it works. If you don't actually take the time to explore the core code, you never actually get it.

Someone may answer a question for you here and there, but you won't really understand the way things work.

Try exploring the WordPress codex pages. Another good way to learn is to open the WordPress core code. The documentation is very extensive, and seems to improve with every version.

Here are a few valuable links to the_author tags that might shed some light: WordPress V3.0+Template Tag Reference Guide

Check out the PHPXref WordPress docs. They should help you out quite a bit. If you hover over a function, tag etc... you'll notice a pop-up with some descriptive text. PHPXref WordPress docs

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.