funnels)) { ?>
funnels as $funnel) {
$funnel_id = $funnel->get_id();
$edit_link = add_query_arg(
[
'page' => WPFNL_EDIT_FUNNEL_SLUG,
'id' => $funnel_id,
'step_id' => $funnel->get_first_step_id(),
],
admin_url('admin.php')
);
$isAutomationEnable = get_post_meta( $funnel_id, 'is_automation_enabled', true );
$isAutomationData = get_post_meta( $funnel_id,'funnel_automation_data',true);
$isGbfInstalled = Wpfnl_functions::is_global_funnel_activated();
$start_condition = get_post_meta( $funnel_id, 'global_funnel_start_condition', true );
$builder = Wpfnl_functions::get_page_builder_by_step_id($funnel_id);
$utm_settings = Wpfnl_functions::get_funnel_utm_settings( $funnel_id );
$is_mint_automation = Wpfnl_functions::maybe_automation_exist_for_a_funnel( $funnel_id );
$funnel_status = 'publish' === get_post_status( $funnel_id ) ? 'Draft': 'Publish';
$isGbf = get_post_meta( $funnel_id, 'is_global_funnel', true );
$_type = get_post_meta( $funnel_id, '_wpfnl_funnel_type', true );
if( 'lead' == $_type ){
$funnel_type = __('Lead', 'wpfnl');
}elseif( 'lms' == $_type ){
$funnel_type = __('LMS', 'wpfnl');
}else{
if( defined('WC_PLUGIN_FILE') ){
$funnel_type = __('Woo', 'wpfnl');
$_type = 'wc';
}else{
$funnel_type = __('Lead', 'wpfnl');
$_type = 'lead';
}
}
Wpfnl_functions::generate_first_step( $funnel_id );
$first_step_id = Wpfnl_functions::get_first_step( $funnel_id );
// Fallback for existing users' existing funnel
// For new funnel, this condition should not trigger
if( !$first_step_id ) {
Wpfnl_functions::generate_first_step( $funnel_id );
$first_step_id = Wpfnl_functions::get_first_step( $funnel_id );
}
if ($first_step_id) {
$view_link = apply_filters( 'wpfunnels/modify_funnel_view_link', get_the_permalink( $first_step_id ), $first_step_id, $funnel_id );
} else {
$view_link = '#';
}
if($utm_settings['utm_enable'] == 'on') {
unset($utm_settings['utm_enable']);
$view_link = add_query_arg($utm_settings,$view_link);
$view_link = strtolower($view_link);
}
if( 'lead' == $global_funnel_type && ( 'lms' == $_type || 'wc' == $_type ) ){
echo '
';
}elseif( 'sales' == $global_funnel_type && 'wc' == $_type && !$is_wc ){
echo '
';
}elseif( 'sales' == $global_funnel_type && 'lms' == $_type && !$is_lms ){
echo '
';
}else{
echo '
';
}
?>
get_id(), 'template_builder', array( 'fields' => 'all' ) );
if($builders) {
foreach ($builders as $builder) {
echo "{$builder->name} ";
}
}
?>
get_published_date() ?>
get_status() ?>
funnels) === 1 && 'draft' === get_post_status( $funnel_id ) ) {
// Get the funnel creation time
$funnel_post = get_post( $funnel_id );
$funnel_creation_time = strtotime( $funnel_post->post_date );
$current_time = current_time( 'timestamp' );
$time_difference = $current_time - $funnel_creation_time;
$hours_passed = $time_difference / 3600;
if ( $hours_passed >= 24 ) {
$should_show_hint = true;
}
}
if ( $should_show_hint ) {
?>
WPFNL_CREATE_FUNNEL_SLUG,
],
admin_url('admin.php')
); ?>
Create your first funnel
Build a sales funnel with everything you need to generate leads and grow sales.
One Click Upsells
Order Bumps
A/B Split Testing
Conversion Templates
Email Automation
Analytics
pagination) { ?>
Features
Unlimited Funnels
Advanced One-Click Upsells
Smart Order Bump Rules
Premium Checkout Templates
Storewide Checkout