validate_plugin


validate_plugin ( $plugin )

Parameters:
  • (string) $plugin Path to the plugin file relative to the plugins directory.
Returns:
  • (WP_Error|int) 0 on success, WP_Error on failure.
Defined at:

Description

Validate the plugin path.

Checks that the main plugin file exists and is a valid plugin. See validate_file().

Related Functions

activate_plugin, validate_active_plugins, activate_plugins, validate_blog_signup, wp_update_plugin

Top Google Results

User discussions

wpseek mobile