xmlrpc_allow_anonymous_comments

xmlrpc_allow_anonymous_comments

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

See hook in core

Displaying hooks found in version: wordpress-6.5.3

apply_filters('xmlrpc_allow_anonymous_comments') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 3915
    		 *
    		 * @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' ) ) {