Plugin Check (PCP) icon
Performance & Caching

Plugin Check (PCP) hooks reference

  • By WordPress.org
  • v2.2.0 New
  • Updated

Plugin Check (PCP) 2.2.0 has 0 actions and 16 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Change a value Plugin Check (PCP) is about to use
add_filter( 'wp_plugin_check_ai_severity_threshold', function( $default, $type ) {
	// Change $default here.
	return $default;
}, 10, 2 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/Traits/AI_Analyzer.php line 674
    /**
     * Filters the AI severity threshold.
     */
    apply_filters( 'wp_plugin_check_ai_severity_threshold', $default, $type );
  • includes/Checker/Check_Categories.php line 69
    /**
     * Filters the check categories.
     */
    apply_filters( 'wp_plugin_check_categories', $default_categories );
  • includes/Checker/Default_Check_Repository.php line 71
    /**
     * Filters the available plugin check classes.
     */
    apply_filters( 'wp_plugin_check_checks', array( 'i18n_usage' => new Checks\General\I18n_Usage_Check(), 'php_error_reporting' => new Checks\General\PHP_Error_Reporting_Check(), 'enqueued_scripts_size' => new Checks\Performance\Enqueued_Scripts_Size_Check(), 'enqueued_styles_size' => new Checks\Performance\Enqueued_Styles_Size_Check(), 'code_obfuscation' => new Checks\Plugin_Repo\Code_Obfuscation_Check(), 'plugin_content' => new Checks\... );
  • includes/Admin/Admin_Page.php line 484
    /**
     * Filters the default check categories to be selected.
     */
    apply_filters( 'wp_plugin_check_default_categories', $default_check_categories );
  • includes/Traits/URL_Utils.php line 142
    /**
     * Filter the list of discouraged domains.
     */
    apply_filters( 'wp_plugin_check_discouraged_domains', $discouraged_domains );
  • includes/Utilities/Plugin_Request_Utility.php line 182
    /**
     * Filters the directories to ignore.
     */
    apply_filters( 'wp_plugin_check_ignore_directories', $default_ignore_directories );
  • includes/Utilities/Plugin_Request_Utility.php line 202
    /**
     * Filters the files to ignore.
     */
    apply_filters( 'wp_plugin_check_ignore_files', $default_ignore_files );
  • includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php line 1074
    /**
     * Filter the list of ignored readme parser warnings.
     */
    apply_filters( 'wp_plugin_check_ignored_readme_warnings', $ignored_warnings, $parser );
  • includes/Utilities/PCP_Ignore_Utility.php line 130
    /**
     * Filters whether a `.pcpignore` file is readable.
     */
    apply_filters( 'wp_plugin_check_pcpignore_is_readable', is_file( $ignore_file ) && is_readable( $ignore_file ), $ignore_file );
  • includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php line 1105
    /**
     * Filter the list of restricted contributors.
     */
    apply_filters( 'wp_plugin_check_restricted_contributors', $restricted_contributors );
  • includes/Checker/Checks/General/I18n_Usage_Check.php line 187
    /**
     * Filter the list of restricted textdomains.
     */
    apply_filters( 'wp_plugin_check_restricted_textdomains', $restricted_textdomains );
  • includes/Checker/Check_Types.php line 41
    /**
     * Filters the check types.
     */
    apply_filters( 'wp_plugin_check_types', $default_types );
  • includes/Traits/File_Editor_URL.php line 112
    /**
     * Filters the template for the URL for linking to an external editor to open a
     * file for editing.
     */
    apply_filters_deprecated( 'wp_plugin_check_validation_error_source_file_editor_url_template', array( null ), '2.1.0', 'wp_plugin_check_validation_error_source_url' );
  • includes/Traits/File_Editor_URL.php line 133
    /**
     * Filters the file path to be opened in an external editor for a given PHPCS
     * error source.
     */
    apply_filters_deprecated( 'wp_plugin_check_validation_error_source_file_path', array( $file_path, array( $plugin_slug, $filename, $line ) ), '2.1.0', 'wp_plugin_check_validation_error_source_url' );
  • includes/Traits/File_Editor_URL.php line 82
    /**
     * Filters the URL for linking to an external editor to open a file for
     * editing.
     */
    apply_filters( 'wp_plugin_check_validation_error_source_url', null, $source );
  • includes/Traits/AI_Utils.php line 511
    apply_filters( 'plugin_check_ai_model_preferences', $models );

Generated from Plugin Check (PCP)'s GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: