Skip to content

wpt_insert_post

github-actions[bot] edited this page Jun 20, 2026 · 3 revisions

Runs when post data is inserted.

Auto-generated Example

add_action(
   'wpt_insert_post',
    function(
        array $_POST,
        int $post_ID
    ) {
        // Your code here.
    },
    10,
    2
);

Parameters

  • array $_POST Unaltered POST data.
  • int $post_ID Post ID

Files

do_action( 'wpt_insert_post', $_POST, $post_ID )

← All Hooks

Clone this wiki locally