xmlrpc_allow_anonymous_comments

xmlrpc_allow_anonymous_comments

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('xmlrpc_allow_anonymous_comments') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 3915
    3911
    3912
    3913
    3914
    3915
    3916
    3917
    3918
    3919
    3920
    3921
    *
     * @param bool $allow Whether to allow anonymous commenting via XML-RPC.
     *                    Default false.
     */
    $allow_anon = apply_filters( 'xmlrpc_allow_anonymous_comments', false );
     
    $user = $this->login( $username, $password );
     
    if ( ! $user ) {
        $logged_in = false;
        if ( $allow_anon && get_option( 'comment_registration' ) ) {