Свойство | Тип | Описание | |
---|---|---|---|
$handler | Falcon_Handler | Sending handler |
Метод | Описание | |
---|---|---|
__construct ( $handler ) | ||
get_available_settings ( ) : array | Get available settings for notifications | |
get_available_settings_short ( ) | ||
get_comment_subscribers ( stdClass $comment ) : WP_User[] | Get all subscribers for comment notifications | |
get_name ( ) : string | Get a human-readable name for the handler | |
handle_insert ( $value, Falcon_Reply $reply ) | ||
is_allowed_type ( $type ) | ||
network_notification_settings ( $user = null, $sites ) | ||
notify_on_publish ( $id, $post = null ) | Notify user roles on new topic | |
notify_on_reply ( $id, $comment = null ) | Send a notification to subscribers | |
output_settings ( $user = null ) | ||
save_profile_settings ( $user_id, $args = [], $sites = null ) |
Метод | Описание | |
---|---|---|
get_comment_content_as_html ( $comment ) | ||
get_comment_content_as_text ( $comment ) | ||
get_default_settings ( ) : array | Get default notification settings | |
get_html_footer ( $url ) | ||
get_message_id_for_comment ( stdClass $comment ) : string | Get the Message ID for a comment | |
get_message_id_for_post ( WP_Post $post ) : string | Get the Message ID for a post | |
get_post_content_as_html ( $post ) | ||
get_post_content_as_text ( $post ) | ||
get_post_subscribers ( WP_Post $post ) : WP_User[] | Get all subscribers for post notifications | |
get_references_for_comment ( stdClass $comment ) : string | Get the References for a comment | |
get_settings_for_user ( integer $user_id, $site_id = null ) : array | Get notification settings for the current user | |
get_text_footer ( $url ) | ||
get_thread_subscribers ( stdClass $comment ) : array | Get subscribers for the thread that a comment is in | |
key_for_setting ( $key, $site_id = null ) | ||
print_field ( $field, $settings, $is_defaults_screen = false ) |
public get_available_settings ( ) : array | ||
Результат | array |
public get_comment_subscribers ( stdClass $comment ) : WP_User[] | ||
$comment | stdClass | Comment being checked |
Результат | WP_User[] |
protected get_default_settings ( ) : array | ||
Результат | array | Map of type => pref value |
protected get_message_id_for_comment ( stdClass $comment ) : string | ||
$comment | stdClass | Comment object |
Результат | string | Message ID |
protected get_message_id_for_post ( WP_Post $post ) : string | ||
$post | WP_Post | Post object |
Результат | string | Message ID |
protected get_post_subscribers ( WP_Post $post ) : WP_User[] | ||
$post | WP_Post | Post being checked |
Результат | WP_User[] |
protected get_references_for_comment ( stdClass $comment ) : string | ||
$comment | stdClass | Comment object |
Результат | string | Message ID |
protected get_settings_for_user ( integer $user_id, $site_id = null ) : array | ||
$user_id | integer | User to get settings for |
Результат | array | Map of type => pref value |
protected get_thread_subscribers ( stdClass $comment ) : array | ||
$comment | stdClass | Comment being checked |
Результат | array |
public handle_insert ( $value, Falcon_Reply $reply ) | ||
$reply | Falcon_Reply |
public network_notification_settings ( $user = null, $sites ) |
public notify_on_publish ( $id, $post = null ) |
public notify_on_reply ( $id, $comment = null ) |
protected print_field ( $field, $settings, $is_defaults_screen = false ) |
public save_profile_settings ( $user_id, $args = [], $sites = null ) |