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

  • CTA_Metaboxes
  • Overview
  • Package
  • Class

Class CTA_Metaboxes

Class that builds the edit page of the wp-call-to-action post type.

Package: CTA\EditPage
Located at core/cta/classes/class.metaboxes.wp-call-to-action.php
Methods summary
public
# __construct( )
public static
# load_hooks( )
public static
# load_metaboxes( )

Loads Metaboxes

Loads Metaboxes

public static
# show_template_settings( $post, $metabox_args )

Show Template Settings Metabox

Show Template Settings Metabox

public static
# show_extension_metabox( $post, $key )

Show Extension Metabox - loads & displays metaboxes built from extension settings

Show Extension Metabox - loads & displays metaboxes built from extension settings

public static
# show_custom_js( )

Show Custom JS Metabox

Show Custom JS Metabox

public static
# show_custom_css( )
public static
# show_stats_metabox( )
public static
# show_analytics_metabox( )

Displays a metabox of the total clicks a CTA has, the top variations by clicks, and the top posts by clicks of the CTA

Displays a metabox of the total clicks a CTA has, the top variations by clicks, and the top posts by clicks of the CTA

public static
# render_settings( $settings_key, $custom_fields, $post )

Display CTA Settings for templates AND extensions

Display CTA Settings for templates AND extensions

public static
# load_template_select_container( )

Loads and hide the template selection grid

Loads and hide the template selection grid

public static
# switch_templates( )

Listenens for template id and returns template settings

Listenens for template id and returns template settings

public static
# add_variation_tabs( )

Adds variation navigation tabs to call to action edit screen

Adds variation navigation tabs to call to action edit screen

public static
# add_shortcode_data( )

Renders shortcode data for user to copy for user

Renders shortcode data for user to copy for user

public static
# add_hidden_inputs( )

Renders shortcode data for user to copy for user

Renders shortcode data for user to copy for user

public static
# change_title_placeholder_text( $text, $post )

Changes the default placeholder text of wp_title when cta is being created. With CTAs, wp_title is a descriptive title.

Changes the default placeholder text of wp_title when cta is being created. With CTAs, wp_title is a descriptive title.

public static
# add_variation_notes( )

Adds variation notes below title

Adds variation notes below title

public static
# enqueue_admin_scripts( )

Enqueues admin CTA styles and scripts

Enqueues admin CTA styles and scripts

public static
# save_call_to_action_data( INT $cta_id )

Updates call to action variation data on post save

Updates call to action variation data on post save

Parameters

$cta_id
of call to action id
public static
# show_advanced_settings( )
public static
# remove_wp_seo( )

Removes WordPress SEO metabox from wp-call-to-action post type. Currently disabled. This throws admin js error.

Removes WordPress SEO metabox from wp-call-to-action post type. Currently disabled. This throws admin js error.

Inbound Pro Plugin - PHP Codex API documentation generated by ApiGen