Skip to content

wpt_post_to_service

github-actions[bot] edited this page Jun 19, 2026 · 2 revisions

Execute an action when a status update is executed.

Auto-generated Example

add_action(
   'wpt_post_to_service',
    function(
        int $post_ID,
        array $post_info,
        string $template,
        bool $media = null
    ) {
        // Your code here.
    },
    10,
    3
);

Parameters

  • int $post_ID Post ID.
  • array $post_info Array of post info for templates.
  • string $template Template in use.
  • bool $media Whether media should be included.

Files

do_action( 'wpt_post_to_service', $post_ID, $post_info, $template )

← All Hooks

Clone this wiki locally