add_filter() function in WP

function filtering($a){
echo "<h5> $a </h5>";
}

add_filter('the_title','filtering');

add_filter() function has two parameters
1st : The function/hook which will be filtered
2nd : Filtering will done by which function

Comments

Popular posts from this blog

Git post receive setup at server for git push to the production from local machine

WP register_post_type() with custom CMB2 meta box