PHP Класс Kirki_Helper, kirki

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
array_replace_recursive ( array $array, array $array1 ) : mixed Recursive replace in arrays.
get_dashicons ( ) : array Get an array of all available dashicons.
get_image_from_url ( string $url ) : array Returns an array of the attachment's properties.
get_image_id ( string $url ) : integer | string Returns the attachment object
get_material_design_colors ( false | string $context = false ) : array Gets an array of material-design colors.
get_post_types ( ) : array Get an array of publicly-querable post-types.
get_posts ( array $args ) : array Get an array of posts.
get_taxonomies ( ) : array Get an array of publicly-querable taxonomies.
get_terms ( string | array $taxonomies ) : array Get an array of terms from a taxonomy
init_filesystem ( ) Initialize the WP_Filesystem
recurse ( array $array, array $array1 ) : array Helper method to be used from the array_replace_recursive method.

Описание методов

array_replace_recursive() публичный статический Метод

Recursive replace in arrays.
public static array_replace_recursive ( array $array, array $array1 ) : mixed
$array array The first array.
$array1 array The second array.
Результат mixed

get_dashicons() публичный статический Метод

Get an array of all available dashicons.
public static get_dashicons ( ) : array
Результат array

get_image_from_url() публичный статический Метод

Returns an array of the attachment's properties.
public static get_image_from_url ( string $url ) : array
$url string URL to the image.
Результат array

get_image_id() публичный статический Метод

Returns the attachment object
public static get_image_id ( string $url ) : integer | string
$url string URL to the image.
Результат integer | string Numeric ID of the attachement.

get_material_design_colors() публичный статический Метод

Gets an array of material-design colors.
public static get_material_design_colors ( false | string $context = false ) : array
$context false | string Allows us to get subsets of the palette.
Результат array

get_post_types() публичный статический Метод

Get an array of publicly-querable post-types.
public static get_post_types ( ) : array
Результат array

get_posts() публичный статический Метод

Get an array of posts.
public static get_posts ( array $args ) : array
$args array Define arguments for the get_posts function.
Результат array

get_taxonomies() публичный статический Метод

Get an array of publicly-querable taxonomies.
public static get_taxonomies ( ) : array
Результат array

get_terms() публичный статический Метод

Get an array of terms from a taxonomy
public static get_terms ( string | array $taxonomies ) : array
$taxonomies string | array See https://developer.wordpress.org/reference/functions/get_terms/ for details.
Результат array

init_filesystem() публичный статический Метод

Initialize the WP_Filesystem
public static init_filesystem ( )

recurse() публичный статический Метод

Helper method to be used from the array_replace_recursive method.
public static recurse ( array $array, array $array1 ) : array
$array array The first array.
$array1 array The second array.
Результат array