$jetpack
$jetpack
subscribe(string $email, array $post_ids, bool $async, $extra_data) : true|\Jetpack_Error
Jetpack_Subscriptions::subscribe()
Send a synchronous XML-RPC subscribe to blog posts or subscribe to post comments request.
string | ||
array | $post_ids | (optional) defaults to 0 for blog posts only: array of post IDs to subscribe to blog's posts |
bool | $async | (optional) Should the subscription be performed asynchronously? Defaults to true. |
$extra_data |
true on success invalid_email : not a valid email address invalid_post_id : not a valid post ID unknown_post_id : unknown post not_subscribed : strange error. Jetpack servers at WordPress.com could subscribe the email. disabled : Site owner has disabled subscriptions. active : Already subscribed. unknown : strange error. Jetpack servers at WordPress.com returned something malformed. unknown_status : strange error. Jetpack servers at WordPress.com returned something I didn't understand.