Plugin_Ept implements Registerable, Custom_Fields_Provider

Interfaces, Classes and Traits

Registerable
Custom_Fields_Provider

Table of Contents

$registered  : mixed
flatten_fields()  : array<string|int, mixed>
Formats the list of registered custom fields to an array compatible with the fields editor.
get_field_display_value()  : mixed
Returns the human readable value of a given option of a field.
get_field_value()  : mixed
Returns the value of a custom field.
get_fields()  : array<string|int, mixed>
Returns a list of all registered custom fields.
get_provider_name()  : string
Returns the name of the provider.
get_supported_types()  : array<string|int, mixed>
Returns a list of supported field types.
init()  : void
Hook into WP.
is_registered()  : bool
Determine if the provider is registered.
register()  : mixed
{@inheritdoc}
register_source()  : array<string|int, mixed>
Register the custom fields source.
register_types_support()  : array<string|int, mixed>
Register the supported types by the "cf" source type.

Properties

Methods

flatten_fields()

Formats the list of registered custom fields to an array compatible with the fields editor.

public flatten_fields(mixed $fields) : array<string|int, mixed>
Parameters
$fields : mixed

list of fields to flatten and format.

Return values
array<string|int, mixed>

get_field_display_value()

Returns the human readable value of a given option of a field.

public get_field_display_value(string $meta_key, mixed $option) : mixed
Parameters
$meta_key : string
$option : mixed
Return values
mixed

get_field_value()

Returns the value of a custom field.

public get_field_value(string $meta_key, mixed $post_id) : mixed
Parameters
$meta_key : string
$post_id : mixed
Return values
mixed

get_fields()

Returns a list of all registered custom fields.

public get_fields([mixed $flattened = true ]) : array<string|int, mixed>
Parameters
$flattened : mixed = true

flattened by default

Return values
array<string|int, mixed>

get_provider_name()

Returns the name of the provider.

public get_provider_name() : string
Return values
string

get_supported_types()

Returns a list of supported field types.

public get_supported_types() : array<string|int, mixed>
Return values
array<string|int, mixed>

init()

Hook into WP.

public init() : void
Return values
void

is_registered()

Determine if the provider is registered.

public is_registered() : bool
Return values
bool

register()

{@inheritdoc}

public register() : mixed
Return values
mixed

register_source()

Register the custom fields source.

public register_source(array<string|int, mixed> $list) : array<string|int, mixed>
Parameters
$list : array<string|int, mixed>
Return values
array<string|int, mixed>

register_types_support()

Register the supported types by the "cf" source type.

public register_types_support(array<string|int, mixed> $types) : array<string|int, mixed>
Parameters
$types : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results