aioseo_insert_post

aioseo_insert_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.8.7

do_action('aioseo_insert_post') is found 2 times:

  • /app/Common/Api/PostsTerms.php line 331
    		$aioseoPost->updated     = gmdate( 'Y-m-d H:i:s' );
    		$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 333
    			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.
    	 *