jetpack_xmlrpc_server_event

jetpack_xmlrpc_server_event

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('jetpack_xmlrpc_server_event') is found 5 times:

  • /vendor/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php line 227
    		 * @param String  $stage  the execution stage, can be 'begin', 'success', 'error', etc.
    		 * @param array   $parameters extra parameters from the event.
    		 * @param WP_User $user the acting user.
    		 */
    		do_action( 'jetpack_xmlrpc_server_event', 'remote_authorize', 'begin', array(), $user );
    
    		foreach ( array( 'secret', 'state', 'redirect_uri', 'code' ) as $required ) {
    			if ( ! isset( $request[ $required ] ) || empty( $request[ $required ] ) ) {
    				return $this->error(
    					new \WP_Error( 'missing_parameter', 'One or more parameters is missing from the request.', 400 ),
    					'remote_authorize'
    
  • /vendor/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php line 261
    			return $this->error( $result, 'remote_authorize' );
    		}
    
    		// This action is documented in class.jetpack-xmlrpc-server.php.
    		do_action( 'jetpack_xmlrpc_server_event', 'remote_authorize', 'success' );
    
    		return array(
    			'result' => $result,
    		);
    	}
    
    
  • /vendor/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php line 278
    	 * @return \WP_Error|array
    	 */
    	public function remote_register( $request ) {
    		// This action is documented in class.jetpack-xmlrpc-server.php.
    		do_action( 'jetpack_xmlrpc_server_event', 'remote_register', 'begin', array() );
    
    		$user = $this->fetch_and_verify_local_user( $request );
    
    		if ( ! $user ) {
    			return $this->error(
    				new WP_Error( 'input_error', __( 'Valid user is required', 'jetpack-connection' ), 400 ),
    
  • /vendor/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php line 351
    			}
    		}
    
    		// This action is documented in class.jetpack-xmlrpc-server.php.
    		do_action( 'jetpack_xmlrpc_server_event', 'remote_register', 'success' );
    
    		return array(
    			'client_id' => Jetpack_Options::get_option( 'id' ),
    		);
    	}
    
    
  • /vendor/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php line 639
    	 */
    	public function error( $error = null, $event_name = null, $user = null ) {
    		if ( null !== $event_name ) {
    			// This action is documented in class.jetpack-xmlrpc-server.php.
    			do_action( 'jetpack_xmlrpc_server_event', $event_name, 'fail', $error, $user );
    		}
    
    		if ( $error !== null ) {
    			$this->error = $error;
    		}
    
    

See this hook used in plugins: