Category: Admin
Arguments for aioseo_facebook_tags
$attributes = [ ‘og:site_name’ => ”, ‘og:type’ => ”, ‘og:title’ => ”, ‘og:description’ => ”, ‘og:url’ => ”, ‘fb:app_id’ => ”, ‘fb_admins’ => ”, ‘og:image’ => ”, ];Continue reading
Connect to google
Connect to google
https://www.facebook.com/profile.php?id=61561561635100Continue reading
Connect to google
Dynamically Change the SEO Title of a Specific Term Before the Metadata is Saved
add_filter( “aioseo_save_term”, “aioseo_filter_term_data” ); function aioseo_filter_term_data( $term ) { if ( 12 === (int) $term->term_id ) { $term->title = ‘Some new title here’; } return $term; }Continue reading
Dynamically Change the SEO Title of a Specific Post Before the Metadata is Saved
add_filter( “aioseo_save_post”, “aioseo_filter_post_data” ); function aioseo_filter_post_data( $post ) { if ( 10 === (int) $post->post_id ) { $post->title = ‘Some new title here’; } return $post; }Continue reading
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
Prevent AIOSEO From Outputting a rel=”next” Link
add_filter( ‘aioseo_next_link’, ‘aioseo_filter_next_link’ ); function aioseo_filter_next_link( $next ) { return ”; }Continue reading
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