$post_types, 'post_status' => 'publish', 'posts_per_page' => 100, 'orderby' => 'modified', 'order' => 'DESC', ) ); $default_id = isset( $_GET['post'] ) ? absint( wp_unslash( $_GET['post'] ) ) : 0; if ( ! $default_id && ! empty( $recent_posts ) ) { $default_id = (int) $recent_posts[0]->ID; } $rest_base = esc_url_raw( rest_url( AEOMATIC_AI_Readiness::REST_NS . '/ai-readiness' ) ); $rest_nonce = wp_create_nonce( 'wp_rest' ); wp_enqueue_script( 'wp-api-fetch' ); ?>