Created
April 3, 2023 11:58
-
-
Save hcoohb/6d6d89be300d2601d2e224a0ec827470 to your computer and use it in GitHub Desktop.
Remove neve copyright
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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