Prevent AIOSEO From Outputting any Data on Category Archive Pages
add_filter( ‘aioseo_meta_views’, ‘aioseo_filter_meta_views’ ); function aioseo_filter_meta_views( $views ) { if ( is_category() ) { return []; } return $views; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘aioseo_meta_views’, ‘aioseo_filter_meta_views’ ); function aioseo_filter_meta_views( $views ) { if ( is_category() ) { return []; } return $views; }Continue reading
add_filter( ‘aioseo_get_post_id’, ‘aioseo_change_post_id’ ); function aioseo_change_post_id( $postId ) { if( is_post_type_archive( ‘product’ ) ) { $postId = 123; } return $postId; }Continue reading
add_filter( ‘aioseo_flyout_menu_enable’, ‘aioseo_filter_flyout_menu_enable’ ); function aioseo_filter_flyout_menu_enable( $enabled ) { if ( ! aioseo()->access->isAdmin() ) { $enabled = false; } return $enabled; }Continue reading
add_filter( ‘aioseo_flush_output_buffer’, ‘__return_false’ );Continue reading
add_action( ‘wp_footer’, static function () { ?>Continue reading
function mepr_change_invoice_bill_to( $invoice, $txn ) { $user = $txn->user(); // Get company custom field. // Replace ‘mepr_company_name’ with the custom field slug. $company = get_user_meta( $user->ID, ‘mepr_company_name’, true ); // Return company name if not empty $name = ( !empty(…Continue reading