-
Greetings,
I am trying to add focus keywords with this code, but nothing is saved (It works with other custom fields I have):add_action( ‘transition_post_status’, ‘add_keywords’, 10, 3 );
function add_keywords( $new_status, $old_status, $post ){
……..
……..
$post_ID=$post->ID;
update_post_meta($post_ID, ‘rank_math_focus_keyword’, ‘test’);
……..
……..
}Help please.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘Focus keywords not saved’ is closed to new replies.