ai_client ) && WPF()->ai_client->is_feature_available( 'wordpress_content_indexing' ); if ( ! $wpf_ai_wp_indexing_available ) { ?>

vector_storage->for_board( 0 ); $storage_mode = $storage_manager->get_storage_mode(); // Get WordPress auto-indexing option (global, not board-specific) $wp_auto_indexing_enabled = (bool) get_option( 'wpforo_ai_wp_auto_indexing_enabled', 0 ); // Get WordPress image indexing option $wp_image_indexing_enabled = (bool) get_option( 'wpforo_ai_wp_image_indexing_enabled', 0 ); // Get post types from the indexer $wp_post_types = []; if ( isset( WPF()->ai_wp_indexer ) ) { $wp_post_types = WPF()->ai_wp_indexer->get_public_post_types(); } // Calculate totals $wp_total_content = 0; foreach ( $wp_post_types as $type ) { $wp_total_content += $type['count']; } // Get initial indexed counts for page load $wp_initial_status = null; $wp_initial_indexed = 0; $wp_is_indexing = false; $wp_last_activity = null; if ( isset( WPF()->ai_wp_indexer ) ) { $wp_initial_status = WPF()->ai_wp_indexer->get_indexing_status( true ); if ( ! is_wp_error( $wp_initial_status ) ) { $wp_initial_indexed = (int) ( $wp_initial_status['total_indexed'] ?? 0 ); $wp_is_indexing = (bool) ( $wp_initial_status['is_indexing'] ?? false ); $wp_last_activity = $wp_initial_status['last_indexed_at'] ?? null; } } // Get remaining credits from subscription data $remaining_credits = 0; if ( isset( $status['subscription']['credits_remaining'] ) ) { $remaining_credits = (int) $status['subscription']['credits_remaining']; } ?>

0 ? round( ( $wp_initial_indexed / $wp_total_content ) * 100, 1 ) : 0; ?>
%