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().
		}
	}

Changelog

Changelog
Version Description
4.13.7 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.