Skip to content

Instantly share code, notes, and snippets.

@hcoohb
Created April 3, 2023 11:58
Show Gist options
  • Save hcoohb/6d6d89be300d2601d2e224a0ec827470 to your computer and use it in GitHub Desktop.
Save hcoohb/6d6d89be300d2601d2e224a0ec827470 to your computer and use it in GitHub Desktop.
Remove neve copyright
function remove_neve_copyright() {
// Need to first get the HeaderFooterGrid Object to get the footer builder that added the hook to the action.
// error_log("Getting Footer Object");
if ( class_exists( '\\HFG\\Main' ) ) {
$hfg = HFG\Main::get_instance();
// error_log( print_r($hfg->get_builder('footer'), true) );
remove_action( 'neve_after_slot_component', [ $hfg->get_builder('footer'), 'add_footer_component' ], 10 );
}
}
add_action( 'wp_loaded', 'remove_neve_copyright' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment