Acf implements Registerable, Custom_Fields_Provider

ACF integration.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Custom_Fields_Provider
Custom Fields Provider interface.

Table of Contents

$registered  : bool
Whether the ACF integration has been registered.
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>
Flatten the fields.
get_field_display_value()  : mixed
Get the field display value.
get_field_value()  : mixed
Get the field value.
get_fields()  : array<string|int, mixed>
Get the custom fields.
get_provider_name()  : string
Get the provider name.
get_supported_types()  : array<string|int, mixed>
Get the supported field types.
init()  : void
Hook into WordPress.
is_dependency_satisfied()  : bool
Determine if the ACF integration is registered.
is_registered()  : bool
Check if the ACF integration is registered.
register()  : void
Register the ACF integration.
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

$registered

Whether the ACF integration has been registered.

public bool $registered = false

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

Flatten the fields.

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

get_field_display_value()

Get the field display value.

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

get_field_value()

Get the field value.

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

get_fields()

Get the custom fields.

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

get_provider_name()

Get the provider name.

public get_provider_name() : string
Return values
string

get_supported_types()

Get the supported field types.

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

init()

Hook into WordPress.

public init() : void
Return values
void

is_dependency_satisfied()

Determine if the ACF integration is registered.

public is_dependency_satisfied() : bool
Return values
bool

is_registered()

Check if the ACF integration is registered.

public is_registered() : bool
Return values
bool

register()

Register the ACF integration.

public register() : void
Return values
void

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