Hello readers, today we discussed about How to remove parent theme Action and Filter in wordpress child theme.
Some theme have its own hook function that change theme behavior and functionality.
Some example are below, Right now I am not going to explain all these, we will cover them in another tutorial.
pinboard_brandingopen()
pinboard_blogtitle()
pinboard_blogdescription()
pinboard_brandingclose()
pinboard_access()
The below code is the way to deactivate the parent hook and filter.
<?php
function unhook_pinboard_functions() {
remove_action( ' pinboard_blogdescription', ' pinboard-blogdescription', 5 );
}
add_action( 'init', 'unhook_pinboard_functions' );
?>
0 Comment(s)