-
-
Notifications
You must be signed in to change notification settings - Fork 11
websub_verify_subscription
github-actions[bot] edited this page Jan 1, 2026
·
1 revision
Filter whether to accept a subscription verification.
/**
* Filter whether to accept a subscription verification.
*
* @param bool $allow
* @param string $subscription_id
* @param string $topic
* @param mixed $string_mode_the_mode
* @return bool The filtered value.
*/
function my_websub_verify_subscription_callback( bool $allow, string $subscription_id, string $topic, $string_mode_the_mode ) {
// Your code here.
return $allow;
}
add_filter( 'websub_verify_subscription', 'my_websub_verify_subscription_callback', 10, 4 );-
bool$allowWhether to allow the subscription. Default false. -
string$subscription_idThe subscription identifier. -
string$topicThe topic URL. -
$string_mode_the_modeOther variable names:$mode
\apply_filters( 'websub_verify_subscription', false, $subscription_id, $topic, $mode )