pre_user_id

pre_user_id

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_user_id') is found 2 times:

  • /wp-includes/comment.php line 2120
    		 * @since 1.5.0
    		 *
    		 * @param int $user_id The comment author's user ID.
    		 */
    		$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] );
    	} elseif ( isset( $commentdata['user_id'] ) ) {
    		/** This filter is documented in wp-includes/comment.php */
    		$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] );
    	}
    
    	/**
    
  • /wp-includes/comment.php line 2123
    		 */
    		$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] );
    	} elseif ( isset( $commentdata['user_id'] ) ) {
    		/** This filter is documented in wp-includes/comment.php */
    		$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] );
    	}
    
    	/**
    	 * Filters the comment author's browser user agent before it is set.
    	 *
    	 * @since 1.5.0