Class Landing_Pages_ACF
Class ifor integrating landingpage CPT with ACF4 & ACF5
public
|
|
public static
|
|
public static
mixed
|
|
public static
|
|
public static
|
|
public static
|
#
save_acf_fields( $landing_page_id )
Compiles ACF Meta Data into a singular json pair for variation support |
public static
|
|
public static
mixed
|
|
public static
|
|
public static
mixed
|
#
format_value( $value, $post_id, $field )
Although unused at the moment, this method can be used for filtering the return value with ACF5 fields |
public static
|
#
load_value( MIXED $value, INT $post_id, ARRAY $field )
Finds the correct value given the variation |
public static
|
#
load_legacy_value( MIXED $value, INT $post_id, ARRAY $field )
Finds the correct value given the variation - uses legacy meta system |
public static
|
#
search_field_array( ARRAY $array, STRING $field )
Searches ACF variation array and returns the correct field value given the field key |
public static
|
#
get_repeater_layouts( $array )
Searches an array assumed to be a repeater field dataset and returns an array of repeater field layout definitions |
public static
|
#
get_repeater_values( $array, $field, $needle )
Searches an array assumed to be a repeater field dataset and returns an array of repeater field layout definitions |
public static
|
#
load_acf_on_template( $allow, $rule, $args )
Check if current post is a landing page using an ACF powered template |
public static
mixed
|
|
public static
|
|
public static
|
#
acf_free_value_formatting( $value, $field )
Correct return value formatting when Pro is NOT installed |
public static
mixed
|
|
public static
boolean|integer|string
|
#
key_search( $array, $field, boolean|false $get_parent = false , mixed $last_key = false )
This is a complicated array search method for working with ACF repeater fields. |
public static
|
|
public static
|
public static
string
|
$_transient_name
Name under which the transient for the current tab will be saved. |
#
'acf_current_tab'
|
public static
integer
|
$_transient_minutes
Number of minutes the transient will be saved. |
#
5
|