-1, // 全件 'post_type' => array( 'post', 'page'), 'orderby' => 'ID', 'order' => 'DESC', 'post_status' => 'publish' )); // 投稿・固定ページ取得 while( $query->have_posts() ) { $query->the_post(); $id_array[] = get_the_ID(); } $ids = implode( ',', $id_array ); $post_count = count( $id_array ); unset( $query, $id_array ); add_action( 'admin_head', function() use( $ids, $post_count ) { $security = 'luxe_reget_sns'; $ajax_nonce = wp_create_nonce( $security ); ?>