PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / trunk
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance vtrunk
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / simplehtmldom / simplehtmldom / docs / HtmlNode / removeClass.md

removeClass.md in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance trunk, at vendor/simplehtmldom/simplehtmldom/docs/HtmlNode/removeClass.md

23 lines 673 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ```php
2 removeClass ( [ mixed $class = null ] )
3 ```
4
5 | Parameter | Description |
6 |-----------|--------------------------------------------------|
7 | `class` | Specifies one or more class names to be removed. |
8
9 Removes one or more class names from the current node.
10
11 **Remarks**
12
13 * To remove more than one class, separate the class names with space or provide them as an array.
14 * If no parameter is specified, this method will remove all class names from the current node.
15
16 **Examples**
17
18 ```php
19 $node->removeClass('hidden');
20 $node->removeClass('article important');
21 $node->removeClass(array('article', 'new'));
22 $node->removeClass();
23 ```