structured_data, 'output_structured_data'), 10); } function acsc_remove_the_seo_f_schema( $data = "" ) { if ( ! acsc_check_disable_other() ) return $data; return array(); } function acsc_remove_yoast_schema($data){ if ( ! acsc_check_disable_other() ) return $data; return false; } function acsc_remove_rankmath_schema($data, $jsonld){ if ( ! acsc_check_disable_other() ) return $data; return array(); } function acsc_remove_tribe_events_schema( $data, $args, $post ){ if ( ! acsc_check_disable_other() ) return $data; return (object)array(); } function acsc_remove_cooked_schema( $data = "" ) { if ( ! acsc_check_disable_other() ) return $data; return false; } // ≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣ function acsc_check_disable_other(){ global $ACSC, $post; // check if plugin is enabled if ( ! acsc_opt('enable') ) return false; // check disable_other_schemas option if ( ! acsc_opt('disable_other_schemas') && $post && $post->post_name != 'ads-view-schema' ) return false; return true; } ?>