Salve, avrei bisogno di disattivare plugin, ma solo sulle pagine AMP perchè sto avendo problemi là¬. Mettiamo ad esempio che sia questo il plugin https://wordpress.org/support/plugin/schema
Come si dovrebbe fare? So che va inserito un codice in functions.php tipo quello qui sotto (che non funziona), ma sono un po’ inesperto, potreste darmi un piccolo aiuto a crearlo?
function schema_compat_amp() {
if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
add_filter( 'schema/enabled', '__return_false' );
}
}
add_action( 'schema/compat', 'schema_compat_amp' );