'tiered-pricing_tools-anchor', ), array( 'title' => __( 'Utilities', 'tier-pricing-table' ), 'desc' => __( 'Manage roles, test what a customer pays, and clean up tiered pricing data.', 'tier-pricing-table' ), 'id' => MainSettings::SETTINGS_PREFIX . 'tools_utilities', 'type' => 'title', ), array( 'type' => 'tiered-pricing_tools-ui', ), array( 'type' => 'sectionend', 'id' => MainSettings::SETTINGS_PREFIX . 'tools_utilities', ), ), $settings ); } ); add_action( 'woocommerce_admin_field_tiered-pricing_tools-anchor', function () { // printed between two settings tables, so it is not a table row; the scroll margin keeps the heading below the sticky bars ?>
admin_url( 'admin-ajax.php' ), 'searchProductsNonce' => wp_create_nonce( 'search-products' ), 'searchCustomersNonce' => wp_create_nonce( 'search-customers' ), 'pricingTest' => array( 'rulesEnabled' => PricingTester::rulesEnabled(), 'rulesUrl' => admin_url( 'edit.php?post_type=' . GlobalTieredPricingCPT::SLUG ), 'newRuleUrl' => admin_url( 'post-new.php?post_type=' . GlobalTieredPricingCPT::SLUG ), 'rule' => $testRule ? array( 'id' => $testRule, 'title' => PricingTester::ruleTitle( $testRule ), 'url' => get_edit_post_link( $testRule, 'raw' ), ) : null, ), ) ); wp_enqueue_style( 'wp-components' ); } ); } }