WP_Plugin_Dependencies::get_dependent_filepath
Gets a dependent plugin's filepath.
Метод класса: WP_Plugin_Dependencies{}
Хуков нет.
Возвращает
Строку|false. The dependent plugin's filepath, relative to the plugins directory, or false if the plugin has no dependencies.
Использование
$result = WP_Plugin_Dependencies::get_dependent_filepath( $slug );
- $slug(строка) (обязательный)
- The dependent plugin's slug.
Список изменений
| С версии 6.5.0 | Введена. |
Код WP_Plugin_Dependencies::get_dependent_filepath() WP Plugin Dependencies::get dependent filepath WP 6.9.4
public static function get_dependent_filepath( $slug ) {
$filepath = array_search( $slug, self::$dependent_slugs, true );
return $filepath ? $filepath : false;
}