id = self::$plugin_info['name'] . '-advanced-product-pricing-settings'; $this->is_cpt = 'product'; } /** * Set Fields. * * @return void */ protected function set_fields() { $this->fields = pricing_fields( $this, self::$core, self::$plugin_info ); } /** * Settings Hooks. * * @return void */ protected function hooks() { add_action( $this->id . '-after-settings-field-pricing_table_html_status', array( $this, 'pricing_table_html_shortcode' ), 100, 1 ); add_action( $this->id . '-just-after-settings-field-dynamic_price_counter', array( $this, 'dynamic_price_sales_counter_overwrite' ), 100, 1 ); add_filter( $this->id . '-filter-settings-before-saving', array( $this, 'update_sales_counter' ), 100, 2 ); } /** * Pricing Table HTML Shortcode. * * @param array $field * @return void */ public function pricing_table_html_shortcode( $field ) { ?>
[]