filtrod 6.5.0
wp_plugin_dependencies_slug
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
| Parametr | Typ | Opis |
|---|---|---|
$slug | string | The slug. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_plugin_dependencies_slug', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_plugin_dependencies_slug', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii