(array) ( $post_types ?? [ 'post','page' ] ), 'post_status' => 'publish', 'posts_per_page' => 5, 'orderby' => 'modified', 'order' => 'DESC', 'no_found_rows' => true, ] ); $analyzer = new AIT_AIPSEO_Analyzer(); foreach ( $q->posts as $p ) { if ( ! empty( AIT_AIPSEO_Settings::get('analyze_only_with_keyword') ) ) { $kws = AIT_AIPSEO_Keyword_Density::get_target_keywords( $post_id ); if ( empty( $kws ) ) { continue; } } $analyzer->analyze_and_store( $p->ID ); } } }