Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove existing function from main theme and redeclare function in child theme
<?php
// Remove tgmpa function from main theme and redeclare the function in child theme
function remove_content_filter() {
remove_filter( 'tgmpa_register', 'themeplace_register_required_plugins' );
}
add_action( 'after_setup_theme', 'remove_content_filter' );
@humayunahmed8
Copy link
Author

humayunahmed8 commented Feb 28, 2022

code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment