aioseo_insert_post, $postId
aioseo_insert_post, $postId
Appears in: all-in-one-seo-pack.5.0.0.1
Hook Type: action
Displaying hooks found in version: all-in-one-seo-pack.5.0.0.1do_action('aioseo_insert_post, $postId') is found 2 times:
- /app/Common/Api/PostsTerms.php line 428
$aioseoPost->save(); // Trigger the action hook so we can create a revision. do_action( 'aioseo_insert_post', $postId ); $lastError = aioseo()->core->db->lastError(); if ( ! empty( $lastError ) ) { return new \WP_REST_Response( [ 'success' => false, 'message' => 'Failed update query: ' . $lastError - /app/Common/Models/Post.php line 415
return $lastError; } // Fires once an AIOSEO post has been saved. do_action( 'aioseo_insert_post', $postId ); } /** * Checks if the title/description is the same as their default format in Search Appearance and nulls it if this is the case. * Doing this ensures that updates to the default title/description format also propogate to the post. *