Skip to content

websub_verify_subscription

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

Filter whether to accept a subscription verification.

Auto-generated Example

/**
 * 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 );

Parameters

  • bool $allow Whether to allow the subscription. Default false.
  • string $subscription_id The subscription identifier.
  • string $topic The topic URL.
  • $string_mode_the_mode Other variable names: $mode

Files

\apply_filters( 'websub_verify_subscription', false, $subscription_id, $topic, $mode )

← All Hooks

Clone this wiki locally