Skip to content

wpt_service_enabled

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

Filter whether a given post should be sent to a specific service.

Auto-generated Example

add_filter(
   'wpt_service_enabled',
    function(
        bool $send_to,
        int $post_ID,
        string $service
    ) {
        // Your code here.
        return $send_to;
    },
    10,
    3
);

Parameters

  • bool $send_to True to send to a service.
  • int $post_ID Post ID. False if checking globally.
  • string $service Service ID.

Returns

bool

Files

apply_filters( 'wpt_service_enabled', $send_to, $post_ID, $service )

← All Hooks

Clone this wiki locally