sprintf(
'%2$s',
esc_url( admin_url( 'admin.php?page=apsw-settings' ) ),
esc_html__( 'Settings', 'ai-product-studio-for-woocommerce' )
),
'create_product' => sprintf(
'%2$s',
esc_url( admin_url( 'admin.php?page=apsw-create-product' ) ),
esc_html__( 'Create Product', 'ai-product-studio-for-woocommerce' )
),
);
return array_merge( $action_links, $links );
}
/**
* Bootstrap runtime services.
*
* @return void
*/
public function bootstrap() {
$this->dependencies = new APSW_Dependencies();
$this->settings = new APSW_Settings();
$this->product_creator = new APSW_Product_Creator( $this->dependencies, $this->settings );
$this->product_ai_generator = new APSW_Product_AI_Generator( $this->settings, $this->dependencies );
$this->product_draft_input = new APSW_Product_Draft_Input( $this->dependencies, $this->product_creator, $this->product_ai_generator );
$this->batch_create = new APSW_Batch_Create( $this->dependencies, $this->product_creator, $this->product_ai_generator );
$this->admin_menu = new APSW_Admin_Menu( $this->dependencies, $this->settings, $this->product_draft_input, $this->batch_create );
$this->dependencies->init();
$this->settings->init();
$this->product_draft_input->init();
$this->batch_create->init();
$this->admin_menu->init();
}
}