Prevent AIOSEO From Outputting a rel=”prev” Link
add_filter( ‘aioseo_prev_link’, ‘aioseo_filter_prev_link’ ); function aioseo_filter_prev_link( $previous ) { return ”; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘aioseo_prev_link’, ‘aioseo_filter_prev_link’ ); function aioseo_filter_prev_link( $previous ) { return ”; }Continue reading
add_filter( ‘aioseo_next_link’, ‘aioseo_filter_next_link’ ); function aioseo_filter_next_link( $next ) { return ”; }Continue reading
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_filter( ‘aioseo_disable_title_rewrites’, ‘aioseo_disable_term_title_rewrites’ ); function aioseo_disable_term_title_rewrites( $disabled ) { if ( is_category() || is_tag() || is_tax() ) { return true; } return false; }Continue reading
add_action( ‘wp_footer’, static function () { ?>Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading