ajax = new Aiko_Developer_Ajax_Lite(); $this->core = new Aiko_Developer_Core_Lite(); $this->post_type = new Aiko_Developer_Post_Type_Lite(); register_activation_hook( plugin_dir_path( __DIR__ ) . 'aiko-developer-lite-init.php', array( $this->core, 'get_aiko_developer_activate' ) ); add_action( 'init', array( $this->post_type, 'get_aiko_developer_register_post_type' ) ); add_action( 'pre_get_posts', array( $this->post_type, 'get_aiko_developer_hide_posts_for_non_admins' ) ); add_action( 'load-post.php', array( $this->post_type, 'get_aiko_developer_restrict_post_access' ) ); add_action( 'add_meta_boxes', array( $this->post_type, 'get_aiko_developer_add_output_meta_boxes' ) ); add_action( 'admin_menu', array( $this->post_type, 'get_aiko_developer_add_menu_pages' ) ); add_action( 'admin_head', array( $this->post_type, 'get_aiko_developer_highlight_submenu' ) ); add_action( 'admin_init', array( $this->post_type, 'get_aiko_developer_register_settings' ) ); add_action( 'admin_init', array( $this->core, 'get_aiko_developer_redirect_after_activation' ) ); add_action( 'edit_form_after_title', array( $this, 'get_aiko_developer_after_title_render' ) ); add_filter( 'wp_post_revision_meta_keys', array( $this->post_type, 'get_aiko_developer_enable_meta_revisions' ) ); add_filter( '_wp_post_revision_fields', array( $this->post_type, 'get_aiko_developer_enable_meta_revision_fields' ) ); add_filter( 'enter_title_here', array( $this->post_type, 'get_aiko_developer_change_title_placeholder' ), 10, 2 ); add_action( 'save_post_aiko_developer', array( $this->core, 'get_aiko_developer_save_generate' ) ); add_action( 'admin_enqueue_scripts', array( $this->core, 'get_aiko_developer_enqueue_scripts' ) ); add_action( 'init', array( $this->core, 'get_aiko_developer_load_textdomain' ) ); add_action( 'wp_ajax_download_zip', array( $this->ajax, 'aiko_developer_handle_download_zip' ) ); add_action( 'wp_ajax_save_to_plugins', array( $this->ajax, 'aiko_developer_handle_save_to_plugins' ) ); add_action( 'wp_ajax_edit', array( $this->ajax, 'aiko_developer_handle_edit' ) ); add_action( 'wp_ajax_rephrase_user_prompt', array( $this->ajax, 'aiko_developer_handle_rephrase_user_prompt' ) ); add_action( 'wp_ajax_self_rephrase_functional_requirements', array( $this->ajax, 'aiko_developer_handle_self_rephrase_functional_requirements' ) ); add_action( 'wp_ajax_undo_rephrase', array( $this->ajax, 'aiko_developer_handle_undo_rephrase' ) ); add_action( 'wp_ajax_submit_prompt_send', array( $this->ajax, 'aiko_developer_handle_submit_prompt_send' ) ); add_action( 'init', array( $this->core, 'get_aiko_developer_maybe_schedule_prompts_update' ) ); add_action( 'aiko_developer_prompt_update_cron_event', array( $this->core, 'get_aiko_developer_prompt_update_cron_event' ) ); add_action( 'plugins_loaded', array( $this->core, 'get_aiko_developer_new_fields_update' ) ); } private function aiko_developer_after_title_render( $post ) { if ( 'aiko_developer' === $post->post_type ) { $functional_requirements = get_post_meta( $post->ID, '_functional_requirements', true ); $generation = get_post_meta( $post->ID, '_generation', true ); $revisions = wp_get_post_revisions( $post->ID ); $last = reset( $revisions ); $code_not_generated = get_post_meta( $post->ID, '_code_not_generated', true ); $api_key = get_option( 'aiko_developer_openai_api_key', '' ); $rephrased_flag = get_post_meta( $post->ID, '_aiko_developer_rephrased_flag' ); $slug = $post->post_name; $used_model = get_post_meta( $post->ID, '_used_model', true ); ?>

core->get_aiko_developer_o1_preview_fallback( $model, 'developer' ); if ( ! empty( $functional_requirements ) ) { ?>

core->get_aiko_developer_o1_preview_fallback( $model, 'developer' ); if ( empty( $functional_requirements ) ) { ?>

ID, '_generation', array( true, 'no_prompt', '' ) ); ?>

All

post_title ); ?>


aiko_developer_after_title_render( $post ); } }