WP HOOKS
filtrod 6.5.0

wp_plugin_dependencies_slug

Args 1Plik wp-includes/class-wp-plugin-dependencies.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters a plugin dependency's slug before matching to the WordPress.org slug format.

Can be used to switch between free and premium plugin slugs, for example.

Parametry

ParametrTypOpis
$slugstringThe slug.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_plugin_dependencies_slug', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii