summaryrefslogtreecommitdiff
path: root/inc/core/deprecated/deprecated-hooks.php
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-21 14:54:07 -0500
committerZach van Rijn <me@zv.io>2021-07-21 14:54:07 -0500
commit9d4123cee1867ee7199b06bdc92d40611f547ecc (patch)
tree6d864e2725242863afed1f8ba12d9c7a9bc63a69 /inc/core/deprecated/deprecated-hooks.php
downloadblog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.gz
blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.bz2
blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.xz
blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.zip
Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/.
Diffstat (limited to 'inc/core/deprecated/deprecated-hooks.php')
-rw-r--r--inc/core/deprecated/deprecated-hooks.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/inc/core/deprecated/deprecated-hooks.php b/inc/core/deprecated/deprecated-hooks.php
new file mode 100644
index 0000000..0f2943d
--- /dev/null
+++ b/inc/core/deprecated/deprecated-hooks.php
@@ -0,0 +1,34 @@
+<?php
+/**
+ * Deprecated Hooks of Astra Theme.
+ *
+ * @package Astra
+ * @author Astra
+ * @copyright Copyright (c) 2020, Astra
+ * @link https://wpastra.com/
+ * @since Astra 1.0.23
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+if ( ! function_exists( 'astra_do_action_deprecated' ) ) {
+ /**
+ * Astra Filter Deprecated
+ *
+ * @since 1.1.1
+ * @param string $tag The name of the filter hook.
+ * @param array $args Array of additional function arguments to be passed to apply_filters().
+ * @param string $version The version of WordPress that deprecated the hook.
+ * @param string $replacement Optional. The hook that should have been used. Default false.
+ * @param string $message Optional. A message regarding the change. Default null.
+ */
+ function astra_do_action_deprecated( $tag, $args, $version, $replacement = false, $message = null ) {
+ if ( function_exists( 'do_action_deprecated' ) ) { /* WP >= 4.6 */
+ do_action_deprecated( $tag, $args, $version, $replacement, $message );
+ } else {
+ do_action_ref_array( $tag, $args );
+ }
+ }
+}