WP_Dependencies::remove()
Un-register an item or items.
Метод класса: WP_Dependencies{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Dependencies = new WP_Dependencies(); $WP_Dependencies->remove( $handles );
- $handles(строка|string[]) (обязательный)
- 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 6.5.2
public function remove( $handles ) { foreach ( (array) $handles as $handle ) { unset( $this->registered[ $handle ] ); } }