top of page
  • abbibendipu

1001 Jazz Licks Pdf [BETTER]







Category:Blues solos Category:Jazz terminologyQ: remove_action (wp_head action hook) i have the following code: function wpse165709_ajax_callback() { global $wp_query; $wp_query->is_main_query = true; if(get_query_var('paged')) { $paged = get_query_var('paged'); } else { $paged = 1; } $posts = get_posts(array('post_type' => 'post', 'posts_per_page' => $paged, 'paged' => $paged, 'post__in' => $page_post_ids)); $wp_query->set('page', $paged); $comment_count = $wp_query->get_comments_number(); $wp_query->set('comments_open', $comment_count); echo ''; print_r($wp_query->get('post')); echo ''; $page_post_ids = get_posts(array('post_type' => 'page', 'posts_per_page' => $paged, 'page_id' => $paged, 'post__in' => $page_post_ids)); $wp_query->set('post', $page_post_ids); $wp_query->set('page', $paged); $wp_query->set('comments_open', $comment_count); } add_action('wp_head', 'wpse165709_ajax_callback', 9); Why do i need add_action('wp_head', 'wpse165709_ajax_callback', 9); and why should i remove it? I thought it should run only once. Regards A: it is a standard hook in Wordpress to run any action on each request, that means it is only called once when your browser sends a be359ba680


Related links:

0 views0 comments
bottom of page