Send a synchronous XML-RPC subscribe to blog posts or subscribe to post comments request.
public subscribe ( string $email, array $post_ids, boolean $async = true, $extra_data = [] ) : true | Jetpack_Error | ||
string | ||
$post_ids | array | (optional) defaults to 0 for blog posts only: array of post IDs to subscribe to blog's posts |
$async | boolean | (optional) Should the subscription be performed asynchronously? Defaults to true. |
return | true | Jetpack_Error | 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. |