-
Notifications
You must be signed in to change notification settings - Fork 4
puc_api_error
github-actions[bot] edited this page Sep 2, 2026
·
4 revisions
add_action(
'puc_api_error',
function(
$response,
$ret = null,
string $url = null,
$slug = null
) {
// Your code here.
}
);-
$responseOther variable names:$error,$new_wp_error,$valid,$status -
$retOther variable names:$response,$result -
string$urlOther variable names:$ret $slug
do_action('puc_api_error', $response, null, $url, $this->slug)do_action('puc_api_error', $error, $response, $url, $this->slug)do_action(
'puc_api_error',
new \WP_Error(
'puc-no-update-source',
'Could not retrieve version information from the repository. '
. 'This usually means that the update checker either can\'t connect '
. 'to the repository or it\'s configured incorrectly.'
),
null, null, $this->slug
)do_action('puc_api_error', $response, null, $url, $this->slug)do_action('puc_api_error', $error, $response, $url, $this->slug)do_action(
'puc_api_error',
new \WP_Error(
'puc-no-update-source',
'Could not retrieve version information from the repository. '
. 'This usually means that the update checker either can\'t connect '
. 'to the repository or it\'s configured incorrectly.'
),
null, null, $this->slug
)do_action('puc_api_error', $response, null, $url, $this->slug)do_action('puc_api_error', $error, $response, $url, $this->slug)do_action('puc_api_error', new WP_Error('puc-invalid-json', $errorMessage))do_action('puc_api_error', $valid)do_action('puc_api_error', $status, $result, $url, $this->slug)add_action(
'cmb2_footer_enqueue',
function() {
// Your code here.
}
);do_action( 'cmb2_footer_enqueue' )