Skip to content

wpt_insert_post

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

Runs when post data is inserted.

Auto-generated Example

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

Parameters

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

Files

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

← All Hooks

Clone this wiki locally