add_filter() not working in WordPress

Posted by KPL on Stack Overflow See other posts from Stack Overflow or by KPL
Published on 2010-06-12T14:58:18Z Indexed on 2010/06/12 15:02 UTC
Read the original article Hit count: 359

Hello everybody,

I just came across a problem, here's my code -

function unFilterPostData() {
    $content    =   get_the_content();
    return $content . 'Contact author on Twitter - @alilpirate';
}
add_filter('the_content','unFilterPostData');

I have also tried using

function unFilterPostData($content) {
    return $content . 'Contact author on Twitter - @alilpirate';
}
add_filter('the_content','unFilterPostData');

But nothing works. Help!

© Stack Overflow or respective owner

Related posts about php

Related posts about Wordpress