프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$hash | |||
$jetpack |
메소드 | 설명 | |
---|---|---|
__construct ( ) | ||
comment_subscribe_init ( ) | Jetpack_Subscriptions::comment_subscribe_init() | |
comment_subscribe_submit ( $comment_id, $approved ) | Jetpack_Subscriptions::comment_subscribe_init() | |
configure ( ) | Jetpack_Subscriptions::configure() | |
get_default_settings ( ) | ||
get_settings ( ) | ||
init ( ) | Singleton | |
maybe_send_subscription_email ( $new_status, $old_status, $post ) | Checks whether or not the post should be emailed to subscribers | |
reading_section ( ) | ||
set_cookies ( boolean $subscribe_to_post = false, integer $post_id = null, boolean $subscribe_to_blog = false ) | Jetpack_Subscriptions::set_cookies() | |
set_post_flags ( $flags, $post ) | ||
setting_comment_follow ( ) | ||
setting_invitation ( ) | ||
should_email_post_to_subscribers ( $post ) | ||
subscribe ( string $email, array $post_ids, boolean $async = true, $extra_data = [] ) : true | Jetpack_Error | Jetpack_Subscriptions::subscribe() | |
subscription_comment_subscribe_setting ( ) | Comments Subscriptions Toggle | |
subscription_post_page_metabox ( ) | * Disable Subscribe on Single Post Register post meta | |
subscription_post_subscribe_setting ( ) | Post Subscriptions Toggle | |
subscriptions_settings_section ( ) | Discussions setting section blurb | |
validate_settings ( $settings ) | ||
widget_init ( ) | Jetpack_Subscriptions::widget_init() | |
widget_submit ( ) | Jetpack_Subscriptions::widget_submit() | |
xmlrpc_methods ( array $methods ) | Jetpack_Subscriptions::xmlrpc_methods() |
public comment_subscribe_init ( ) |
public comment_subscribe_submit ( $comment_id, $approved ) |
public maybe_send_subscription_email ( $new_status, $old_status, $post ) | ||
$new_status | string - the "new" post status of the transition when saved | |
$old_status | string - the "old" post status of the transition when saved | |
$post | obj - The post object |
public set_cookies ( boolean $subscribe_to_post = false, integer $post_id = null, boolean $subscribe_to_blog = false ) | ||
$subscribe_to_post | boolean | Whether the user chose to subscribe to subsequent comments on this post. |
$post_id | integer | If $subscribe_to_post is true, the post ID they've subscribed to. |
$subscribe_to_blog | boolean | Whether the user chose to subscribe to all new posts on the blog. |
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. |
리턴 | 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. |
public subscription_comment_subscribe_setting ( ) |
public subscription_post_page_metabox ( ) |
public subscription_post_subscribe_setting ( ) |
public subscriptions_settings_section ( ) |
public widget_init ( ) |
public widget_submit ( ) |
public xmlrpc_methods ( array $methods ) | ||
$methods | array |