Code needed
wp content filter is only filtering the title in the post-desc it is not filtering the description.
The author of
wp content filter has told me "you can hook into the content you want to filter then you can pass it to the 'pccf_filter' callback function."
This code is for the title
if ( isset( $tmp['chk_post_title'] ) ) {
if ( $tmp['chk_post_title'] == '1' ) {
add_filter( 'the_title', 'pccf_filter' );
}
Do anyone know the code I need to put in to filter the post-desc?
if ( isset( $tmp['chk_xxxxxxxx'] ) ) {
if ( $tmp['chk_xxxxxxxx'] == '1' ) {
add_filter( 'xxxxxxxx', 'pccf_filter' );
}
I have tried some code but it has not worked. This must be relatively easy for a programmer to work out in an instance, unfortunately I am not a programmer.
Any help with this is appreciated.
Thanks in advance.