return; } ?> <p> <input type="checkbox" id="wpem_pro_opt_in" name="wpem_pro_opt_in" value="1"> <label for="wpem_pro_opt_in"><?php _e('I would be interested in hiring a professional to help me with my WordPress site.', 'gd_system'); ?> </label> </p> <?php }); /** * Save setting for Web Pro opt-in */ add_filter('wpem_step_settings_options', function ($options) { if (!gd_is_reseller() && !gd_is_mt() && gd_is_english() && 'US' === gd_wpem_country_code()) { $options[] = array('name' => 'wpem_pro_opt_in', 'sanitizer' => 'absint', 'required' => false); } return $options; }); /** * Return the site created date * * @param string $format * * @return int|string */ function gd_site_created_date($format = 'U') { // Use when this constant was introduced as default (Tue, 22 Dec 2015 00:00:00 GMT) $time = defined('GD_SITE_CREATED') ? (int) GD_SITE_CREATED : 1450742400;
/** * Register tabs * * @action init */ public function init() { $this->tabs = array('help' => __('FAQ & Support', 'gd_system'), 'hire' => __('Hire A Pro', 'gd_system'), 'plugins' => __('Plugin Partners', 'gd_system')); /** * Only display the `Hire A Pro` tab to customers that: * * 1. Have completed WPEM * 2. Speak English * 3. Are located in the United States */ if (!gd_has_used_wpem() || !gd_is_english() || 'US' !== gd_wpem_country_code()) { unset($this->tabs['hire']); } $tab = filter_input(INPUT_GET, 'tab'); $this->tab = !empty($tab) ? sanitize_key($tab) : $this->tab; }