Class Landing_Pages_Variations
Class covers methods handling landing page edit screen
public
|
|
public static
|
|
public static
|
#
delete_variation( INT $landing_page_id, INT $variation_id )
Deletes variation for a call to action |
public static
|
|
public static
|
#
play_variation( INT $landing_page_id, INT $variation_id )
Activations variation for a call to action |
public static
|
#
update_variations( INT $landing_page_id, variations $variations )
Updates 'inbound-email-variations' meta key with json object |
public static
|
#
record_impression( INT $landing_page_id, INT $variation_id )
Increments impression count for given cta and variation id |
public static
|
|
public static
|
|
public static
mixed
|
|
public static
|
#
set_variation_status( INT $landing_page_id, INT $variation_id, STRING $status = '1' )
Sets the variation status to a custom status |
public static
|
#
set_variation_marker( INT $landing_page_id, INT $variation_marker )
Updates variation marker (used for single sends) |
public static
|
#
set_impressions_count( INT $landing_page_id, INT $variation_id, INT $count )
Manually sets conversion count for given cta id and variation id |
public static
|
#
set_conversions_count( INT $landing_page_id, INT $variation_id, INT $count )
Manually sets conversion count for given cta id and variation id |
public static
|
|
public static
|
#
get_variation_status( INT $landing_page_id, INT $variation_id = null )
Returns the status of a variation given landing_page_id and vid |
public static
INT
|
|
public static
|
#
get_variation_permalink( INT $landing_page_id, INT $variation_id = null )
Returns the permalink of a variation given landing_page_id and vid |
public static
STRING
|
#
get_variation_notes( INT $landing_page_id, INT $variation_id = null )
Gets the call to action variation notes |
public static
STRING
|
#
get_custom_css( INT $landing_page_id, INT $variation_id = null )
Gets the call to action variation custom css |
public static
STRING
|
#
get_custom_js( INT $landing_page_id, INT $variation_id = null )
Gets the call to action variation custom js |
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
STRING
|
#
get_screenshot_url( INT $landing_page_id, INT $variation_id = null )
Get Screenshot URL for Call to Action preview. If local environment show template thumbnail. |
public static
INT
|
#
get_impressions( INT $landing_page_id, INT $variation_id )
Returns impression for given cta and variation id |
public static
INT
|
#
get_conversions( INT $landing_page_id, INT $variation_id )
Returns impression for given cta and variation id |
public static
INT
|
#
get_conversion_rate( INT $landing_page_id, INT $variation_id )
Returns conversion rate for given cta and variation id |
public static
|
|
public static
|
#
get_conversion_area_placement( $landing_page_id, null $variation_id = null )
Returns conversion area placement |
public static
|
|
public static
|
|
public static
|
|
public static
string
|
#
get_setting_value( $key, $landing_page_id, $variation_id = null, string $default = '' )
Gets stored setting value |
public static
|
#
record_conversion( INT $landing_page_id, INT $variation_id )
Increments conversion count for given landing page id and variation id |
public static
STRING
|
|
public static
STRING
|
#
vid_to_letter( INT $landing_page_id, INT $variation_id )
Discovers which alphabetic letter should be associated with a given cta's variation id. |
public static
|
|
public static
|