![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/confenda.com/wp-content/plugins/wp-event-tickets/admin/metabox/ |
<?php /*=======================================================================*/ // Custom fields /*=======================================================================*/ add_action("admin_init", "wp_event_tickets_addMetabox_init"); function wp_event_tickets_addMetabox_init(){ //metabox for cta option add_meta_box("cta_option", "For External Ticket", "wp_event_tickets_external_link", "product", "advanced", "default"); } //cta option metafield function wp_event_tickets_external_link(){ global $post; $custom = get_post_custom(get_the_ID()); if (!empty($custom)){ if(isset($custom['wp_event_tickets_cta_button'])){ $wp_event_tickets_cta_button = $custom['wp_event_tickets_cta_button'][0]; } if(isset($custom['wp_event_tickets_cta_link'])){ $wp_event_tickets_cta_link = $custom['wp_event_tickets_cta_link'][0]; } } ?> <fieldset class="fieldset-1 fieldset-ctabtn"> <div class="ctabtn-section"> <div class="group"> <label><?php esc_html_e( 'CTA Button', 'wp-event-tickets' ); ?></label> <input type="text" name="wp_event_tickets_cta_button" value="<?php if( isset( $wp_event_tickets_cta_button ) ) echo esc_attr( $wp_event_tickets_cta_button ); ?>"> <label><?php esc_html_e( 'CTA Link', 'wp-event-tickets' ); ?></label> <input type="text" name="wp_event_tickets_cta_link" value="<?php if(isset($wp_event_tickets_cta_link)) echo esc_attr( $wp_event_tickets_cta_link ); ?>"> </div> </div> </fieldset> <?php }