public function __construct() { $this->add_filter('ce_get_terms', 'ce_get_terms', 10, 3); $this->add_action('ce_ad_post_form_fields', 'fields_add_post_form_fields', 10, 2); $this->add_action('ce_ad_edit_form_fields', 'fields_add_post_form_fields', 10, 2); $this->add_filter('ce_convert_ad', 'fields_add_meta'); $this->add_action('ce_insert_ad', 'field_insert_add', 10, 2); $this->add_action('ce_update_ad', 'field_update_add', 10, 2); //$this->add_action('wp_footer','ce_field_footer', 20); //$this->add_action( 'wp_enqueue_scripts', 'enqueue_script' ); $this->add_action('et_mobile_footer', 'fields_footer_mobile'); $this->add_action('ce_on_add_scripts', 'ce_field_desktop_script', 1000); $this->add_action('ce_after_footer_script', 'ce_field_desktop_footer_script', 1000); $this->add_filter('pre_get_posts', 'pre_get_posts'); // show field in detail ad $this->add_action('ce_detail_ad_more', 'ce_field_show_after_content'); // show taxonomies in settings of backend. $this->add_action('ce_settings_show_more_taxs', 'show_backend_taxonomy'); $this->add_action('ce_mobile_ad_post_form_fields', 'fields_add_post_form_fields', 10, 2); // load script when minify; $this->add_filter('ce_minify_source_path', 'ce_minify_source_path', 1000); $this->add_action('et_mobile_header', 'et_mobile_header'); $this->add_action('ce_after_update_seller', 'save_seller_field', 10, 2); $this->add_action('ce_after_insert_seller', 'save_seller_field', 10, 2); $fields = CE_Fields::get_taxs(); if (is_array($fields) && !empty($fields)) { foreach ($fields as $key => $field) { if (!$field['tax_status']) { continue; } $tax = new CE_Field_Tax($field); $tax->register_ajax(); $tax->register_action(); } } // seller field render $this->add_action("et_add_meta_seller_profile", "render_seller_field"); $this->add_action("ce_after_register_form", "render_seller_field_register", 15); $this->add_action("ce_seller_add_info", "ce_show_seller_field"); $this->add_action('et_mobile_footer', 'ce_field_mobile_footer'); $this->add_action('cm_after_seller_info', 'ce_show_seller_field'); }