Created
June 29, 2021 07:53
-
-
Save digitalchild/5d28521f5e640fac9b1353f9face3b9a to your computer and use it in GitHub Desktop.
Disable All in One SEO on the WC Vendors Dashboard
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
<?php | |
/** | |
* Disable All In One SEO on the vendor dashboard. | |
*/ | |
add_filter( 'aioseo_disable', 'wcv_aioseo_disable_term_output' ); | |
function wcv_aioseo_disable_term_output( $disabled ) { | |
$current_page_id = get_the_ID(); | |
if ( wcv_is_dashboard_page( $current_page_id ) ){ | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment