rest_after_insert_application_password

rest_after_insert_application_password

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('rest_after_insert_application_password') is found 2 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php line 273
    		 * @param array           $item     Inserted or updated password item.
    		 * @param WP_REST_Request $request  Request object.
    		 * @param bool            $creating True when creating an application password, false when updating.
    		 */
    		do_action( 'rest_after_insert_application_password', $item, $request, true );
    
    		$request->set_param( 'context', 'edit' );
    		$response = $this->prepare_item_for_response( $item, $request );
    
    		$response->set_status( 201 );
    		$response->header( 'Location', $response->get_links()['self'][0]['href'] );
    
  • /wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php line 352
     
    		$item = WP_Application_Passwords::get_user_application_password( $user->ID, $item['uuid'] );
    
    		/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php */
    		do_action( 'rest_after_insert_application_password', $item, $request, false );
    
    		$request->set_param( 'context', 'edit' );
    		return $this->prepare_item_for_response( $item, $request );
    	}
    
    	/**