Override WP function = Cannot redeclare function
-
I’m trying to override the wp_password_change_notification function using the below code but I’m getting the Cannot redeclare error. Is there a solution?
if ( !function_exists( 'wp_password_change_notification' ) ) { function wp_password_change_notification() {} }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Override WP function = Cannot redeclare function’ is closed to new replies.