true, 'mode' => 'all', 'limit' => 0, 'ids' => array(), 'title' => 'Jobs', ); $defaults['llms']['cpts']['jobs'] = $defaults['cpts']['jobs']; $defaults['full']['cpts']['jobs'] = $defaults['cpts']['jobs']; } $defaults['disable_yoast_llms'] = true; $defaults['include_sold_llms'] = false; $defaults['include_sold_full'] = true; $defaults['auto_regenerate'] = 'weekly'; $defaults['llms']['products']['limit'] = 10; $defaults['llms']['posts']['limit'] = 5; $defaults['full']['pages']['enabled'] = true; $defaults['full']['pages']['mode'] = 'all'; $defaults['full']['products']['mode'] = 'all'; return $defaults; } private static function page_id_by_slug( $slug ) { $page = get_page_by_path( $slug ); return $page ? (int) $page->ID : 0; } /** * @return array */ public static function get_setup_checklist() { $settings = ADCT_LLMS_Settings::get(); $last = ADCT_LLMS_File_Writer::get_last_generated(); $llms_ok = file_exists( ABSPATH . 'llms.txt' ); $full_ok = file_exists( ABSPATH . 'llms-full.txt' ); $yoast_off = ! ADCT_LLMS_Yoast::is_active() || ! ADCT_LLMS_Yoast::is_llms_txt_enabled(); $items = array( array( 'label' => __( 'Plugin enabled', 'adct-llm-index' ), 'done' => ! empty( $settings['enabled'] ), 'note' => '', ), ); if ( ! empty( $settings['disable_yoast_llms'] ) ) { $items[] = array( 'label' => __( 'Yoast llms.txt disabled (avoid duplicate files)', 'adct-llm-index' ), 'done' => $yoast_off, 'note' => $yoast_off ? '' : __( 'Use the button below or Yoast → Site features → llms.txt', 'adct-llm-index' ), ); } $items = array_merge( $items, array( array( 'label' => __( 'Shop / inventory page selected', 'adct-llm-index' ), 'done' => ! empty( $settings['shop_page_id'] ), 'note' => '', ), array( 'label' => __( 'Brands hub page selected', 'adct-llm-index' ), 'done' => ! empty( $settings['brands_parent_id'] ), 'note' => '', ), array( 'label' => __( 'Site summary (blockquote) filled in', 'adct-llm-index' ), 'done' => '' !== trim( (string) ( $settings['site_summary'] ?? '' ) ), 'note' => '', ), array( 'label' => __( 'llms.txt generated on server', 'adct-llm-index' ), 'done' => $llms_ok && ! empty( $last['llms'] ), 'note' => $llms_ok ? '' : __( 'Click Save & regenerate files', 'adct-llm-index' ), ), array( 'label' => __( 'llms-full.txt generated on server', 'adct-llm-index' ), 'done' => $full_ok && ! empty( $last['full'] ), 'note' => $full_ok ? '' : __( 'Click Save & regenerate files', 'adct-llm-index' ), ), ) ); if ( ADCT_LLMS_License::is_commercial() ) { array_splice( $items, 5, 0, array( array( 'label' => __( 'Valid license activated', 'adct-llm-index' ), 'done' => ADCT_LLMS_License::has_valid_license(), 'note' => ADCT_LLMS_License::has_valid_license() ? '' : __( 'Settings → LLM Index → License', 'adct-llm-index' ), ), ) ); } return $items; } }