-
-
Notifications
You must be signed in to change notification settings - Fork 11
websub_{$mode}
github-actions[bot] edited this page Jan 17, 2026
·
2 revisions
Fires when a subscription request succeeds.
/**
* Fires when a subscription request succeeds.
*
* @param string $topic_url
* @param string $subscription_id
* @param WP_Error $error
*/
function my_websub_{$mode}_callback( string $topic_url = null, string $subscription_id = null, WP_Error $error = null ) {
// Your code here.
}
add_action( 'websub_*', 'my_websub_{$mode}_callback' );-
string$topic_urlThe topic URL. -
string$subscription_idThe subscription identifier. -
WP_Error$errorThe error object.
\do_action( 'websub_' . $mode . '_error', $topic_url, $subscription_id, $response )\do_action( 'websub_' . $mode . '_success', $topic_url, $subscription_id, $response )\do_action( 'websub_' . $mode . '_error', $topic_url, $subscription_id, $error )