Comment extends Component
Handles comments.
Table of Contents
- __construct() : mixed
- Class constructor.
- clear_comment_count() : mixed
- Clears comment count.
- disable_notifications() : bool
- Disables email notifications.
- filter_comment_feed() : string
- Filters comment RSS feed.
- filter_comment_query() : mixed
- Filters comment WP query.
- update_comment_count() : array<string|int, mixed>
- Updates comment count.
- boot() : mixed
- Bootstraps component properties.
- get_comment_types() : array<string|int, mixed>
- Gets comment types.
- set_callbacks() : mixed
- Sets the action and filter callbacks.
- set_property() : mixed
- Sets a property value.
Methods
__construct()
Class constructor.
    public
                __construct([array<string|int, mixed> $args = [] ]) : mixed
        
        Parameters
- $args : array<string|int, mixed> = []
- 
                    Component arguments. 
Return values
mixed —clear_comment_count()
Clears comment count.
    public
            static    clear_comment_count() : mixed
        
    
    
        Return values
mixed —disable_notifications()
Disables email notifications.
    public
                disable_notifications(bool $notify, int $comment_id) : bool
        
        Parameters
- $notify : bool
- 
                    Notify comment author? 
- $comment_id : int
- 
                    Comment ID. 
Return values
bool —filter_comment_feed()
Filters comment RSS feed.
    public
                filter_comment_feed(string $where) : string
        
        Parameters
- $where : string
- 
                    Where clause. 
Return values
string —filter_comment_query()
Filters comment WP query.
    public
                filter_comment_query(WP_Comment_Query $query) : mixed
        
        Parameters
- $query : WP_Comment_Query
- 
                    Comment query. 
Return values
mixed —update_comment_count()
Updates comment count.
    public
                update_comment_count(array<string|int, mixed> $stats, int $post_id) : array<string|int, mixed>
        
        Parameters
- $stats : array<string|int, mixed>
- 
                    Comment stats. 
- $post_id : int
- 
                    Post ID. 
Return values
array<string|int, mixed> —boot()
Bootstraps component properties.
    protected
                boot() : mixed
        
    
    
        Return values
mixed —get_comment_types()
Gets comment types.
    protected
                get_comment_types() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —set_callbacks()
Sets the action and filter callbacks.
    protected
        final        set_callbacks(array<string|int, mixed> $callbacks) : mixed
        
        Parameters
- $callbacks : array<string|int, mixed>
- 
                    Callback arguments. 
Return values
mixed —set_property()
Sets a property value.
    protected
        final        set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
        
        Parameters
- $name : string
- 
                    Property name. 
- $value : mixed
- 
                    Property value. 
- $prefix : string = ''
- 
                    Method prefix.