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.
// 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
-
/** * Filters the AI severity threshold. */ apply_filters( 'wp_plugin_check_ai_severity_threshold', $default, $type ); -
wp_plugin_check_categories
filter/** * Filters the check categories. */ apply_filters( 'wp_plugin_check_categories', $default_categories ); -
wp_plugin_check_checks
filter/** * 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\... ); -
/** * Filters the default check categories to be selected. */ apply_filters( 'wp_plugin_check_default_categories', $default_check_categories ); -
/** * Filter the list of discouraged domains. */ apply_filters( 'wp_plugin_check_discouraged_domains', $discouraged_domains ); -
/** * Filters the directories to ignore. */ apply_filters( 'wp_plugin_check_ignore_directories', $default_ignore_directories ); -
wp_plugin_check_ignore_files
filter/** * Filters the files to ignore. */ apply_filters( 'wp_plugin_check_ignore_files', $default_ignore_files ); -
/** * Filter the list of ignored readme parser warnings. */ apply_filters( 'wp_plugin_check_ignored_readme_warnings', $ignored_warnings, $parser ); -
/** * 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 ); -
/** * Filter the list of restricted contributors. */ apply_filters( 'wp_plugin_check_restricted_contributors', $restricted_contributors ); -
/** * Filter the list of restricted textdomains. */ apply_filters( 'wp_plugin_check_restricted_textdomains', $restricted_textdomains ); -
wp_plugin_check_types
filter/** * Filters the check types. */ apply_filters( 'wp_plugin_check_types', $default_types ); -
/** * 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' ); -
/** * 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' ); -
/** * 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 ); -
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: