WP_Dependencies::remove() public WP 2.1.0
Un-register an item or items.
{} Это метод класса: WP_Dependencies{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$WP_Dependencies = new WP_Dependencies(); $WP_Dependencies->remove( $handles );
- $handles(строка/строка[]) (обязательный)
- Item handle (string) or item handles (array of strings).
Список изменений
С версии 2.1.0 | Введена. |
С версии 2.6.0 | Moved from WP_Scripts. |
Код WP_Dependencies::remove() WP Dependencies::remove WP 5.7
public function remove( $handles ) {
foreach ( (array) $handles as $handle ) {
unset( $this->registered[ $handle ] );
}
}