get_default_comment_status

get_default_comment_status

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_default_comment_status') is found 1 times:

  • /wp-includes/comment.php line 315
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
         *                             either 'open' or 'closed'.
         * @param string $post_type    Post type. Default is `post`.
         * @param string $comment_type Type of comment. Default is `comment`.
         */
        return apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type );
    }
     
    /**
     * Retrieves the date the last comment was modified.
     *
     * @since 1.5.0