[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Handles compatibility checks for Akismet with other plugins.
File Size: | 316 lines (8 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
Akismet_Compatible_Plugins:: (10 methods):
get_installed_compatible_plugins()
init()
handle_plugin_change()
get_compatible_plugins()
validate_compatible_plugin_response()
has_valid_plugin_path()
sanitize_compatible_plugin_response()
set_cached_plugins()
get_cached_plugins()
purge_cache()
Class: Akismet_Compatible_Plugins - X-Ref
Class for managing compatibility checks for Akismet with other plugins.get_installed_compatible_plugins() X-Ref |
Get the list of active, installed compatible plugins. return: WP_Error|array { |
init() X-Ref |
Initializes action hooks for the class. return: void |
handle_plugin_change( string $plugin ) X-Ref |
Handles plugin activation and deactivation events. param: string $plugin The path to the main plugin file from plugins directory. return: void |
get_compatible_plugins() X-Ref |
Gets plugins that are compatible with Akismet from the Akismet API. return: array |
validate_compatible_plugin_response( $response ) X-Ref |
Validates a response object from the Compatible Plugins API. param: array|WP_Error $response return: array|false |
has_valid_plugin_path( string $path ) X-Ref |
Validates a plugin path format. The path should be in the format of 'plugin-name/plugin-name.php'. Allows alphanumeric characters, dashes, underscores, and optional dots in folder names. param: string $path return: bool |
sanitize_compatible_plugin_response( array $plugins = array() X-Ref |
Sanitizes a response object from the Compatible Plugins API. param: array $plugins return: array |
set_cached_plugins( array $plugins ) X-Ref |
param: array $plugins return: bool |
get_cached_plugins() X-Ref |
Attempts to get cached compatible plugins. return: mixed|false |
purge_cache() X-Ref |
Purges the cache for the compatible plugins. return: bool |
Generated : Wed May 14 08:20:01 2025 | Cross-referenced by PHPXref |