Overview

Packages

  • ACF
  • Automation
    • Actions
    • Activation
    • LeadProfile
    • Menus
    • Queries
    • Rules
    • Triggers
  • CTA
    • Activation
    • AJAXListeners
    • Cloning
    • Core
    • Display
    • EditPage
    • Enqueues
    • GPLSettings
    • LeadsProfile
    • Loading
    • Menus
    • Notices
    • PlacementMetabox
    • PostType
    • Templates
    • Tracking
    • Variations
    • YOAST
  • InboundPro
    • Activation
    • AdminAJAX
    • AutoLoading
    • Cron
    • DataInterface
    • FieldMapping
    • Funnels
    • InboundNowAPI
    • Installer
    • LeadStatuses
    • Menus
    • Notifications
    • Ouath
    • Reports
    • Settings
    • Tracking
    • Translations
    • Updates
  • LandingPages
    • Activation
    • DataInterfaces
    • Management
    • Menus
    • NeedsAttention
    • Notices
    • Sidebars
    • Templates
    • Tracking
    • Variations
    • WelcomeScreen
    • Widgets
  • Leads
    • Activation
    • Akismet
    • BranchControl
    • BulkActions
    • Dashboard
    • Management
    • Notifications
    • Settings
    • Tracking
    • UserProfile
    • WPLogin
  • Mailer
    • Activation
    • Admin
    • ClickTracking
    • DataInterface
    • InboundForms
    • Leads
    • Management
    • Notifications
    • Scheduling
    • Sending
    • Settings
    • ShortcodesAndTokens
    • SparkPost
    • Templates
    • Unsubscribes
    • Variations
    • YoastSEO
  • None
  • Shared
    • APIs
    • CPT
    • DatabaseRoutines
    • DebugTricks
    • DoubleOptin
    • EventManagement
    • FieldMapping
    • InboundForms
    • LeadSorage
    • MarketingButton
    • Menus
    • Notifications
    • Shortcodes
    • ShortcodesAndTokens
    • StandAloneLicensing
    • Tracking
    • VisualEditor
  • xDepreciated

Classes

  • Inbound_Mailer_ACF
  • Inbound_Shared_ACF_BootStrap
  • Inbound_Template_Utils
  • Landing_Pages_ACF
  • Overview
  • Package
  • Class

Class Inbound_Mailer_ACF

Class for integrating ACF and Mailer component

Package: ACF
Located at core/mailer/classes/class.acf-integration.php
Methods summary
public
# __construct( )

Initialize Inbound_Mailer_ACF Class

Initialize Inbound_Mailer_ACF Class

public static
# load_hooks( )

Load Hooks & Filters

Load Hooks & Filters

public static mixed
# define_location_rule_types( $choices )

Parameters

$choices

Returns

mixed
public static
# define_location_rule_values( $choices )
public static
# load_value( MIXED $value, INT $post_id, ARRAY $field )

Finds the correct value given the variation

Finds the correct value given the variation

Parameters

$value
contains the non-variation value
$post_id
ID of landing page being loaded
$field
wide array of data belonging to custom field (not leveraged in this method)

Returns

MIXED $new_value value mapped to variation.
public static mixed
# format_value( $value, $field )

Solves issues with return values

Solves issues with return values

Parameters

$value
$field

Returns

mixed
public static
# search_field_array( ARRAY $array, STRING $field )

Searches ACF variation array and returns the correct field value given the field key

Searches ACF variation array and returns the correct field value given the field key

Parameters

$array
of custom field keys and values stored for variation
$field
$needle acf form field key

Returns


$feild value
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

Searches an array assumed to be a repeater field dataset and returns an array of repeater field layout definitions

Retuns

ARRAY $fields this array will either be empty of contain repeater field layout definitions.
public static
# get_repeater_values( $array, $field )

Searches an array assumed to be a repeater field dataset and returns an array of repeater field layout definitions

Searches an array assumed to be a repeater field dataset and returns an array of repeater field layout definitions

Retuns

ARRAY $fields this array will either be empty of contain 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

Check if current post is a landing page using an ACF powered template

Filter

acf/location/rule_match/template_id

Returns

BOOL declaring if current page is a landing page with an ACF template loaded or not
public static
# load_javascript_on_admin_edit_post_page( )
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.

This is a complicated array search method for working with ACF repeater fields.

Parameters

$array
$field
$get_parent
if get_parent is set to true to will return the parent field group key of the repeater fields
$last_key
placeholder for storing the last key...

Returns

boolean|integer|string
Inbound Pro Plugin - PHP Codex API documentation generated by ApiGen