[ Index ]

PHP Cross Reference of BackPress

title

Body

[close]

/includes/ -> functions.wp-styles.php (summary)

BackPress styles procedural API.

File Size: 131 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  wp_print_styles()
  wp_register_style()
  wp_deregister_style()
  wp_enqueue_style()
  wp_style_is()

Functions
Functions that are not part of a class:

wp_print_styles( $handles = false )   X-Ref
Display styles that are in the queue or part of $handles.

return: bool True on success, false on failure.
param: array|bool $handles Styles to be printed. An empty array prints the queue,
since: r79

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.
since: r79

wp_deregister_style( $handle )   X-Ref
Remove a registered CSS file.

param: string $handle Name of the stylesheet.
since: r79

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.
since: r79

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().

return: bool True on success, false on failure.
param: string $handle Name of the stylesheet.
param: string $list Values are 'registered', 'done', 'queue' and 'to_do'.
since: WP unknown; BP unknown



Generated: Sat Nov 23 01:00:54 2024 Cross-referenced by PHPXref 0.7.1