woocommerce_admin_order_milestones_enabled
Filter to allow for disabling order milestones.
Usage
add_filter( 'woocommerce_admin_order_milestones_enabled', 'wp_kama_woocommerce_admin_order_milestones_enabled_filter' ); /** * Function for `woocommerce_admin_order_milestones_enabled` filter-hook. * * @param boolean $true default true * * @return boolean */ function wp_kama_woocommerce_admin_order_milestones_enabled_filter( $true ){ // filter... return $true; }
- $true(true|false)
- default true
Changelog
Since 3.7.0 | Introduced. |
Where the hook is called
woocommerce_admin_order_milestones_enabled
woocommerce/src/Internal/Admin/Notes/OrderMilestones.php 285
$milestone_notes_enabled = apply_filters( 'woocommerce_admin_order_milestones_enabled', true );