Skip to content

wpt_post_info

github-actions[bot] edited this page Jun 14, 2026 · 1 revision

Filters post array to insert custom data that can be used in status update process.

Auto-generated Example

add_filter(
   'wpt_post_info',
    function(
        array $values,
        integer $post_ID
    ) {
        // Your code here.
        return $values;
    },
    10,
    2
);

Parameters

  • array $values Existing values.
  • integer $post_ID Post ID.

Returns

array $values

Files

apply_filters( 'wpt_post_info', $values, $post_ID )

← All Hooks

Clone this wiki locally