Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: validate_plugin_requirements

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1260       * filter will not fire. A WP_Error response will already be returned.
1261       *
1262       * This filter is intended to add additional validation steps by site administrators.
1263       *
1264       * @since 6.9.0
1265       *
1266       * @param bool|WP_Error $met_requirements True if the plugin meets requirements, WP_Error if not.
1267       * @param string $plugin Path to the plugin file relative to the plugins directory.
1268       */
1269      return apply_filters( 'validate_plugin_requirements', true, $plugin );
1270 }
1271
1272 /**
1273  * Determines whether the plugin can be uninstalled.
1274  *
1275  * @since 2.7.0
1276  *
1277  * @param string $plugin Path to the plugin file relative to the plugins directory.
1278  * @return bool Whether plugin can be uninstalled.