Home / Admin / Change the Post ID Being Processed by AIOSEO
Duplicate Snippet

Embed Snippet on Your Site

Change the Post ID Being Processed by AIOSEO

This snippet can be used to change the Post ID being processed by AIOSEO.

<10
Code Preview
php
<?php
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;
}

Comments

Add a Comment