array( __('Ask AI to create an outline for your article based on the title.', 'ai-assistant-tenweb'), __('Compose an opening paragraph for your article based on title.', 'ai-assistant-tenweb'), __('Create a new paragraph from the title or select a paragraph to prolong it.', 'ai-assistant-tenweb'), __('Let AI rewrite the selected paragraph of your article to improve it.', 'ai-assistant-tenweb'), __('Select a paragraph to generate a conclusion paragraph for your article.', 'ai-assistant-tenweb'), ), ); self::how_to_use( $args ); } /** * Word usage container. * * @return void */ public static function word_usage() { $limitation = \AIAssistantTenWeb\Utils::get_limitation(); if ( !empty($limitation) && !empty($limitation['planLimit']) ) { if ( empty($limitation['alreadyUsed']) ) { $limitation['alreadyUsed'] = 0; } ?>

array('title' => 'Generate an outline from a title', 'description' => 'Create an outline for your article based on the title.'), 'intro' => array('title' => 'Generate an introduction from a title', 'description' => 'Compose an opening paragraph for your article.'), 'paragraph' => array('title' => 'Generate a paragraph', 'description' => 'Create a paragraph from title or select a paragraph to prolong it.'), 'conclusion' => array('title' => 'Generate a conclusion paragraph', 'description' => 'Select a paragraph to generate a conclusion for your article.'), 'paraphrase' => array('title' => 'Paraphrase a paragraph', 'description' => 'Rewrite the selected paragraph of your article to improve it.'), ); } public static function how_to_use( $args = array() ) { $intro = isset($args['use_type']) ? 1 : 0; $use_list = $args['use_list']; ?>
>
>
1
2
3
1, 'limit' => 20)) { $logs = get_option('taa_logs', FALSE); if ( empty($logs) ) { return array(); } $logs = (array) json_decode($logs); $logs = array_slice($logs, ($params['list'] - 1) * $params['limit'], $params['limit'], true); return $logs; } }