[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> class-wp-dependency.php (summary)

Dependencies API: _WP_Dependency class

File Size: 133 lines (2 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

_WP_Dependency:: (3 methods):
  __construct()
  add_data()
  set_translations()


Class: _WP_Dependency  - X-Ref

Class _WP_Dependency

Helper class to register a handle and associated data.

__construct()   X-Ref
Setup dependencies.

since: 2.6.0

add_data( $name, $data )   X-Ref
Add handle data.

return: bool False if not scalar, true otherwise.
since: 2.6.0
param: string $name The data key to add.
param: mixed  $data The data value to add.

set_translations( $domain, $path = null )   X-Ref
Sets the translation domain for this dependency.

return: bool False if $domain is not a string, true otherwise.
since: 5.0.0
param: string $domain The translation textdomain.
param: string $path   Optional. The full file path to the directory containing translation files.



Generated: Sun Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1