Yoast hooks
-
Hi,
Is it possible to get a list of hooks in order to disable features of Yoast ?
We are improving the performance of a website and we have found 1.000.000 (1 million) of useless postmetas.
We have deleted but we do not want them to be created again so we decided to code a plugin to do it.
We have already located some snippets but probably there are more hooks we could use to get better performance.
Now we have these scriptsfunction yoast_seo_admin_user_remove_social ( $contactmethods ) { if ( class_exists('WPSEO_Options') ) { unset( $contactmethods['facebook'] ); unset( $contactmethods['instagram'] ); unset( $contactmethods['linkedin'] ); unset( $contactmethods['myspace'] ); unset( $contactmethods['pinterest'] ); unset( $contactmethods['soundcloud'] ); unset( $contactmethods['tumblr'] ); unset( $contactmethods['twitter'] ); unset( $contactmethods['youtube'] ); unset( $contactmethods['wikipedia'] ); } return $contactmethods; } add_filter( 'user_contactmethods', 'yoast_seo_admin_user_remove_social', 99 ); function rkv_remove_columns( $columns ) { if ( class_exists('WPSEO_Options') ) { unset( $columns['wpseo-score-readability'] ); unset( $columns['wpseo-score'] ); unset( $columns['wpseo-title'] ); unset( $columns['wpseo-metadesc'] ); unset( $columns['wpseo-focuskw'] ); unset( $columns['wpseo-links'] ); } return $columns; } add_filter ( 'manage_edit-product_columns', 'rkv_remove_columns' );
Many thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Yoast hooks’ is closed to new replies.