Plugin_Acf implements Registerable, Custom_Fields_Provider

Provides custom fields integration for filters powered by the ACF plugin.

Interfaces, Classes and Traits

Registerable
Custom_Fields_Provider

Table of Contents

$registered  : mixed
bypass_choices_counters()  : mixed
Bypass counters for certain field types.
disable_wpml()  : void
We need to get field groups in all languages.
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.
get_only_supported()  : array<string|int, mixed>
Get the list of supported fields only.

Properties

Methods

bypass_choices_counters()

Bypass counters for certain field types.

public bypass_choices_counters(bool $bypass, Filter $filter) : mixed
Parameters
$bypass : bool
$filter : Filter
Return values
mixed

disable_wpml()

We need to get field groups in all languages.

public disable_wpml(object $query) : void
Parameters
$query : object
Return values
void

flatten_fields()

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

public flatten_fields(mixed $groups) : array<string|int, mixed>
Parameters
$groups : mixed
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>

get_only_supported()

Get the list of supported fields only.

private get_only_supported(array<string|int, mixed> $groups) : array<string|int, mixed>
Parameters
$groups : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results