tabs = apply_filters( 'tiered_pricing_table/global_pricing/form_tabs', $tabs, $this ); } ); add_action( 'edit_form_after_title', function ( WP_Post $post ) { if ( GlobalTieredPricingCPT::SLUG !== $post->post_type ) { return; } $this->render( $post ); } ); new UpgradeTip(); } protected function includeAssets() { ?> includeAssets(); $rulesCount = (int) wp_count_posts( GlobalTieredPricingCPT::SLUG )->publish; if ( $this->isNewRule() && $rulesCount < 1 ) { $this->renderHelpingSteps(); } if ( ! $this->isNewRule() && ! $this->getPricingRuleInstance( $post )->isValidPricing() ) { $this->tabs[0]->renderHint( __( 'The pricing rule does not affect either prices or product quantity limits. The rule will be skipped.', 'tier-pricing-table' ), array( 'custom_class' => 'tpt-global-pricing-rule-hint--top-level' ) ); } ?>
%s %s', esc_html__( 'Note:', 'tier-pricing-table' ), esc_html__( 'Depending on your priority settings, global rules may override product-level pricing configurations.', 'tier-pricing-table' ) ); ?>