-
Notifications
You must be signed in to change notification settings - Fork 4
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.
add_filter(
'wpt_service_enabled',
function(
bool $send_to,
int $post_ID,
string $service
) {
// Your code here.
return $send_to;
},
10,
3
);-
bool$send_toTrue to send to a service. -
int$post_IDPost ID. False if checking globally. -
string$serviceService ID.
bool
apply_filters( 'wpt_service_enabled', $send_to, $post_ID, $service )