This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Variation_Swatches::array_insert_after( array $array, string $key, array $new )
Insert a value or key/value pair after a specific key in an array. If key doesn’t exist, value is appended to the end of the array.
Parameters
- $array
-
(Required) Array where needed to insert.
- $key
-
(Required) Key after to insert.
- $new
-
(Required) What to inset.
Return
(array)
Source
File: includes/modules/woocommerce_booster/variation_swatches/variation_swatches.php
Expand full source code Collapse full source code View on Github