Methods summary
public
|
#
__construct( )
Initialize Inbound_Leads class
Initialize Inbound_Leads class
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
register_lead_list_columns( $cols )
Adds ID and Double Opt In columns to lead-tags WP List Table
Adds ID and Double Opt In columns to lead-tags WP List Table
|
public static
|
#
support_lead_list_columns( $out, $column_name, $term_id )
Displays the list id and double option status in the lead-tags WP List Table
Displays the list id and double option status in the lead-tags WP List Table
|
public static
ARRAY
|
#
intval_list_ids( MIXED $lists )
Make sure that all list ids are intval
Make sure that all list ids are intval
Parameters
Returns
ARRAY
|
public static
|
#
add_lead_to_list( lead_id $lead_id, list_id $list_id )
Adds lead to list
Parameters
- $lead_id
- INT
- $list_id
- INT,ARRAY
|
public static
|
#
remove_lead_from_list( lead_id $lead_id, list_id $list_id )
Removes lead from list
Parameters
- $lead_id
- INT
- $list_id
- INT, ARRAY
|
public static
|
#
get_lead_lists_by_lead_id( INT $lead_id )
Get an array of all lead lists belonging to lead id
Get an array of all lead lists belonging to lead id
Parameters
Returns
ARRAY of lead lists with term id as key and list name as value
|
public static
|
|
public static
|
#
update_lead_list( ARRAY $args )
updates a lead list
Parameters
Retun
ARRAY ontaining list id
|
public static
|
|
public static
|
#
get_lead_lists_as_array( )
Get an array of all lead lists
Get an array of all lead lists
Returns
ARRAY of lead lists with term id as key and list name as value
|
public static
|
#
get_lead_tags_as_array( )
Get an array of all lead lists
Get an array of all lead lists
Returns
ARRAY of lead lists with term id as key and list name as value
|
public static
|
|
public static
|
#
get_lead_list_by( STRING $search, INT $list_id )
Get lead list infomration
Get lead list infomration
Parameters
- $search
- accepts 'id', 'slug', 'name' or 'term_taxonomy_id'
- $list_id
Returns
ARRAY
|
public static
|
#
get_lead_status( $lead_id )
Get lead status given lead id
Get lead status given lead id
Dev
|
public static
|
|
public static
|
#
get_status_lead_count( $status )
Get lead status count given status key
Get lead status count given status key
Dev
|
public static
|
#
add_tag_to_lead( lead_id $lead_id, tag_id $tag, $append = true )
Adds tag to lead
Parameters
- $lead_id
- INT
- $tag
- INT, STRING, ARRAY
- $append
|
public static
|
#
remove_tag_from_lead( lead_id $lead_id, tag_id $list_id )
Remove tag from lead
Parameters
- $lead_id
- INT
- $list_id
- INT,STRING,ARRAY
|
public static
|
#
install_leads_prompt( )
Shows message to install leads when leads is not installed or activated
Shows message to install leads when leads is not installed or activated
|
public static
|
#
get_leads_count_in_list( list_id $list_id )
Gets number of leads in list
Gets number of leads in list
Parameters
- $list_id
- of lead list taxonomy object
|
public static
|
#
get_user_by_lead_id( $lead_id )
Get User Object from lead id
Get User Object from lead id
Parameters
|
public static
|
#
get_user_by_lead_email( $email_address )
Get User Object from lead email
Get User Object from lead email
Parameters
|
public static
|
#
create_double_optin_page( )
Creates the "Confirm Double Optin Page" if the double optin page id is empty
Creates the "Confirm Double Optin Page" if the double optin page id is empty
|
public static
|
|
public static
mixed
|
|
public static
|
|