manager->get_setting( Bizline_Helper::with_prefix( 'home-cta-status' ) )->value(); return $value; } endif; function bizline_front_cta_options(){ Bizline_Customizer::set(array( # Front Page option 'panel' => array( 'id' => 'front-panel' ), # Front Page Option > Header 'section' => array( 'id' => 'home-cta', 'title' => esc_html__( 'Call To Action','bizline' ), 'priority' => 5 ), # Front Page Option > Header > settings 'fields' => array( array( 'id' => 'home-cta-status', 'label' => esc_html__( 'Display Section', 'bizline' ), 'default' => false, 'type' => 'toggle', ), array( 'id' => 'home-cta-text', 'label' => esc_html__( 'Button Text', 'bizline' ), 'default' => esc_html__( 'Buy Now', 'bizline' ), 'partial' =>array( 'selector' => '.bizline-cat-content .bizline-button-primary', ), 'active_callback' => 'acb_front_cta', 'type' => 'text', ), array( 'id' => 'home-cta-excerpt-length', 'label' => esc_html__( 'Excerpt Length', 'bizline' ), 'default' => 30, 'active_callback' => 'acb_front_cta', 'type' => 'number', ), array( 'id' => 'home-cta-page', 'label' => esc_html__( 'Select Page', 'bizline' ), 'default' => 0, 'active_callback' => 'acb_front_cta', 'type' => 'dropdown-pages', ), ), )); } add_action( 'init', 'bizline_front_cta_options' );