patric-boehner
8/5/2015 - 7:08 PM

Tame Yoast plugins

Tame Yoast plugins

<?php

// Tell Yoast Google Analytics plugin not to be at the top of the WP admin menu
add_filter( 'wpga_menu_on_top', '__return_false' );

// Disable additional WPSEO columns from the admin
add_filter( 'wpseo_use_page_analysis', '__return_false' );

/**
 * Set WPSEO metabox to low so custom fields can appear above it
 *
 * @since 1.0.0
 * @return string
 */
function ja_wpseo_metabox_priority() {
	return 'low';
}
add_filter( 'wpseo_metabox_prio', 'ja_wpseo_metabox_priority' );