• Resolved Jairo Ochoa

    (@jairoochoa)


    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 scripts

    function 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)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @jairoochoa

    Thanks for using the Yoast SEO plugin. As much as we hate to say it, your question goes beyond the technical expertise of the Yoast support team. Therefore, we can’t give you a solid answer to your question.

    But we don’t want to leave you empty-handed. Our developer portal at developer.yoast.com has proven helpful to many developers in the past and hopefully will serve you well too.

    Sorry, we can’t be of more help here.

    Thread Starter Jairo Ochoa

    (@jairoochoa)

    Hi @maybellyne

    Thanks for the link. If there I can get a list of hooks I can deal with them

    On the other side, it would be great you to suggest Yoast developers to take in consideration large websites. We manage sites with 90,000 products, other with even 300,000 orders. This large amount of data with thousands postmetas created by Yoast make MySQL run tooo slow. So performance is very important in order to get website run smoothly.

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Yoast hooks’ is closed to new replies.