Skip to content

puc_api_error

github-actions[bot] edited this page Sep 2, 2026 · 4 revisions

Auto-generated Example

add_action(
   'puc_api_error',
    function(
        $response,
        $ret = null,
        string $url = null,
        $slug = null
    ) {
        // Your code here.
    }
);

Parameters

  • $response Other variable names: $error, $new_wp_error, $valid, $status
  • $ret Other variable names: $response, $result
  • string $url Other variable names: $ret
  • $slug

Files

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)

← All Hooks

Clone this wiki locally