forked from anspress/anspress-email
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
33 lines (30 loc) · 840 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Get the email ids of all subscribers of question
* @param integer $post_id
* @return array
* @deprecated 1.3
*/
function ap_get_question_subscribers_data($post_id, $question_subsciber = true) {
_deprecated_function( 'ap_get_question_subscribers_data', '1.3', '' );
}
/**
* @deprecated 1.3
*/
function ap_get_comments_subscribers_data($post_id) {
_deprecated_function( 'ap_get_comments_subscribers_data', '1.3', '' );
}
if ( ! function_exists( 'ap_in_array_r' ) ) {
function ap_in_array_r($needle, $haystack, $strict = false) {
foreach ( $haystack as $item ) {
if ( ($strict ? $item === $needle : $item == $needle) || (is_array( $item ) && in_array_r( $needle, $item, $strict )) ) {
return true;
}
}
return false;
}
}