$this->section_socials, 'panel' => 'rt_contact_social_panel', 'title' => __( 'Socials Information', 'bigshop' ), 'description' => __( 'WTBigshop Socials Section', 'bigshop' ), 'priority' => 2 ] ); Customize::add_controls( $this->section_socials, $this->get_controls() ); } /** * Get controls * @return array */ public function get_controls() { $social_list = Fns::get_socials(); $social_icon_list = []; $count = 1; foreach ( $social_list as $id => $social ) { $social_icon_list[ $id ] = [ 'type' => 'text', 'label' => $social['title'], 'default' => in_array( $id, [ 'facebook', 'twitter', 'linkedin' ] ) ? '#' : '' ]; if ( $count == 1 ) { $social_icon_list[ $id ]['edit-link'] = '.topbar-row .social-icon, .footer-social'; } $count ++; } return apply_filters( 'wtbigshop_socials_controls', $social_icon_list ); } }