rest_pre_insert_application_password WordPress Filter Hook

The rest_pre_insert_application_password hook is called before a new application password is inserted into the database. The hook allows you to modify the password before it is stored, or even cancel the insert altogether.

apply_filters( 'rest_pre_insert_application_password', stdClass $prepared, WP_REST_Request $request ) #

Filters an application password before it is inserted via the REST API.


Parameters

$prepared

(stdClass)An object representing a single application password prepared for inserting or updating the database.

$request

(WP_REST_Request)Request object.


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.