woocommerce_admin_allowed_promo_notes

woocommerce_admin_allowed_promo_notes

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_allowed_promo_notes') is found 1 times:

  • /src/Admin/API/Notes.php line 458
    		 *
    		 * @param array     $promo_notes    Array of allowed promo notes.
    		 * @since 7.8.0
    		 */
    		$allowed_promo_notes = apply_filters( 'woocommerce_admin_allowed_promo_notes', [] );
    
    		$promo_note_name = $request->get_param( 'promo_note_name' );
    
    		if ( ! in_array( $promo_note_name, $allowed_promo_notes, true ) ) {
    			return new \WP_Error(
    				'woocommerce_note_invalid_promo_note_name',
    

See this hook used in plugins: