astra_restore_option_filters( array $detached )
Re-attach option filters detached via astra_detach_option_filters().
Description
Parameters
- $detached
-
(array) (Required) Detached hooks, keyed by hook name.
Return
(void)
Source
File: classes/astra-common-functions.php
function astra_restore_option_filters( $detached ) {
global $wp_filter;
foreach ( $detached as $hook => $callbacks ) {
$wp_filter[ $hook ] = $callbacks; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Restoring the filters detached in astra_detach_option_filters().
}
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.13.7 | Introduced. |