| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
BackPress styles procedural API.
| File Size: | 194 lines (8 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| wp_print_styles( $handles = false ) X-Ref |
| Display styles that are in the queue or part of $handles. param: array|bool $handles Styles to be printed. An empty array prints the queue, return: bool True on success, false on failure. |
| wp_add_inline_style( $handle, $data ) X-Ref |
| Adds extra CSS. Works only if the stylesheet has already been added. Accepts a string $data containing the CSS. If two or more CSS code blocks are added to the same stylesheet $handle, they will be printed in the order they were added, i.e. the latter added styles can redeclare the previous. |
| wp_register_style( $handle, $src, $deps = array() X-Ref |
| Register CSS style file. param: string $handle Name of the stylesheet. param: string|bool $src Path to the stylesheet from the root directory of WordPress. Example: '/css/mystyle.css'. param: array $deps Array of handles of any stylesheet that this stylesheet depends on. param: string|bool $ver String specifying the stylesheet version number. Set to null to disable. param: string $media The media for which this stylesheet has been defined. |
| wp_deregister_style( $handle ) X-Ref |
| Remove a registered CSS file. param: string $handle Name of the stylesheet. |
| wp_enqueue_style( $handle, $src = false, $deps = array() X-Ref |
| Enqueue a CSS style file. Registers the style if src provided (does NOT overwrite) and enqueues. param: string $handle Name of the stylesheet. param: string|bool $src Path to the stylesheet from the root directory of WordPress. Example: '/css/mystyle.css'. param: array $deps Array of handles (names) of any stylesheet that this stylesheet depends on. param: string|bool $ver String specifying the stylesheet version number, if it has one. This parameter param: string $media The media for which this stylesheet has been defined. |
| wp_dequeue_style( $handle ) X-Ref |
| Remove an enqueued style. |
| wp_style_is( $handle, $list = 'queue' ) X-Ref |
| Check whether style has been added to WordPress Styles. The values for list defaults to 'queue', which is the same as wp_enqueue_style(). param: string $handle Name of the stylesheet. param: string $list Values are 'registered', 'done', 'queue' and 'to_do'. return: bool True on success, false on failure. |
| Generated: Fri May 25 03:56:23 2012 | Hosted by follow the white rabbit. |