jetpack_xmlrpc_server_event
jetpack_xmlrpc_server_event
Appears in: jetpack.10.0, jetpack.10.1, jetpack.10.2, jetpack.10.2.1, jetpack.10.7, jetpack.10.9, jetpack.11.0, jetpack.11.1, jetpack.11.1.2, jetpack.11.2, jetpack.11.3.1, jetpack.11.3.2, jetpack.11.4, jetpack.11.5.1, jetpack.11.6, jetpack.11.8, jetpack.11.8.4, jetpack.11.9, jetpack.11.9.1, jetpack.12.0, jetpack.12.1, jetpack.12.1.1, jetpack.12.2.1, jetpack.12.3, jetpack.12.5, jetpack.12.6, jetpack.12.6.1, jetpack.12.7.1, jetpack.12.8, jetpack.12.8.1, jetpack.12.9, jetpack.12.9.3, jetpack.13.0, jetpack.13.1.1, jetpack.13.1.3, jetpack.13.2, jetpack.13.2.1, jetpack.13.3.1, jetpack.13.5, jetpack.13.6, jetpack.13.7, jetpack.13.8, jetpack.13.8.1, jetpack.13.9.1, jetpack.14.0, jetpack.14.1, jetpack.14.2.1, jetpack.14.3, jetpack.14.4.1, jetpack.14.5, jetpack.8.0, jetpack.8.1, jetpack.8.1.1, jetpack.8.2, jetpack.8.2.1, jetpack.8.2.2, jetpack.8.2.3, jetpack.8.3, jetpack.8.4.1, jetpack.8.4.2, jetpack.8.5, jetpack.8.6, jetpack.8.6.1, jetpack.8.7.1, jetpack.8.8, jetpack.8.8.1, jetpack.8.8.2, jetpack.8.9, jetpack.8.9.1, jetpack.9.0.1, jetpack.9.0.2, jetpack.9.1, jetpack.9.2, jetpack.9.2.1, jetpack.9.3, jetpack.9.3.1, jetpack.9.4, jetpack.9.5, jetpack.9.6, jetpack.9.6.1, jetpack.9.7, jetpack.9.8, jetpack.9.8.1, jetpack.9.9, jetpack.9.9.1, woocommerce.7.9.0, woocommerce.8.0.2, woocommerce.8.0.3, woocommerce.8.1.1, woocommerce.8.2.1, woocommerce.8.2.2, woocommerce.8.3.1, woocommerce.8.4.0, woocommerce.8.5.1, woocommerce.8.5.2, woocommerce.8.6.0, woocommerce.8.6.1, woocommerce.8.7.0, woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3, woocommerce.9.3.1, woocommerce.9.3.3, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1, woocommerce.9.5.2, woocommerce.9.7.0, woocommerce.9.7.1
Hook Type: action
See hook in action
Displaying hooks found in version: woocommerce.9.7.1do_action('jetpack_xmlrpc_server_event') is found 5 times:
- /vendor/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php line 227223224225226227228229230231232233
* @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 261257258259260261262263264265266
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 278274275276277278279280281282283284
* @
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 351347348349350351352353354355356
}
}
// 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 639635636637638639640641642643644
*/
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
;
}