', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'blogistic_pingback_header' ); if( ! function_exists( 'blogistic_get_multicheckbox_categories_simple_array' ) ) : /** * Return array of categories prepended with "*" key. * */ function blogistic_get_multicheckbox_categories_simple_array() { $categories_list = get_categories([ 'number' => 6 ]); $cats_array = []; foreach( $categories_list as $cat ) : $cats_array[] = [ 'value' => esc_html( $cat->term_id ), 'label' => esc_html( str_replace ( [ '\'', '"' ], '', $cat->name ) ) . ' (' .absint( $cat->count ). ')' ]; endforeach; return $cats_array; } endif; if( ! function_exists( 'blogistic_get_multicheckbox_tags_simple_array' ) ) : /** * Return array of tags prepended with "*" key. * */ function blogistic_get_multicheckbox_tags_simple_array() { $tags_list = get_tags(['number'=>6]); $tags_array = []; foreach( $tags_list as $tag ) : $tags_array[] = array( 'value' => esc_html( $tag->term_id ), 'label' => esc_html(str_replace(array('\'', '"'), '', $tag->name)) . ' (' .absint( $tag->count ). ')' ); endforeach; return $tags_array; } endif; if( ! function_exists( 'blogistic_get_multicheckbox_users_simple_array' ) ) : /** * Return array of users prepended with "*" key. * */ function blogistic_get_multicheckbox_users_simple_array() { $users_list = get_users(['number' => 6]); $users_array = []; foreach( $users_list as $user ) : $users_array[] = array( 'value' => esc_html( $user->ID ), 'label' => esc_html(str_replace(array('\'', '"'), '', $user->display_name)) ); endforeach; return $users_array; } endif; if( ! function_exists( 'blogistic_get_multicheckbox_posts_simple_array' ) ) : /** * Return array of posts prepended with "*" key. * */ function blogistic_get_multicheckbox_posts_simple_array() { $post_args = array( 'numberposts' => 6 ); $posts_list = get_posts( apply_filters( 'blogistic_query_args_filter', $post_args ) ); $posts_array = []; foreach( $posts_list as $postItem ) : $posts_array[] = array( 'value' => esc_html( $postItem->ID ), 'label' => esc_html(str_replace(array('\'', '"'), '', $postItem->post_title)) ); endforeach; return $posts_array; } endif; if( ! function_exists( 'blogistic_get_categories_html' ) ) : /** * Return categories in