Changeset 3066917
- Timestamp:
- 04/08/2024 12:22:15 PM (2 years ago)
- Location:
- seowriting/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
seowriting.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seowriting/trunk/readme.txt
r3056328 r3066917 5 5 Requires at least: 4.9 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.5. 27 Stable tag: 1.5.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 22 22 23 23 == Changelog == 24 25 = 1.5.3 (2024/04/08) = 26 27 Feature: Internal changes to get a list of authors who are allowed to publish 24 28 25 29 = 1.5.2 (2024/03/21) = -
seowriting/trunk/seowriting.php
r3056086 r3066917 9 9 * Plugin Name: SEOWriting 10 10 * Description: SEOWriting - AI Writing Tool Plugin For Text Generation 11 * Version: 1.5. 211 * Version: 1.5.3 12 12 * Author: SEOWriting 13 13 * Author URI: https://seowriting.ai/?utm_source=wp_plugin … … 28 28 public $plugin_slug; 29 29 public $plugin_path; 30 public $version = '1.5. 2';30 public $version = '1.5.3'; 31 31 /** 32 32 * @var \SEOWriting\APIClient|null … … 349 349 $rs = [ 350 350 'result' => 1, 351 'categories' => $this->getCategories() 351 'categories' => $this->getCategories(), 352 'authors' => $this->getAuthors(), 352 353 ]; 353 354 } elseif ($action === 'disconnect') { … … 360 361 'result' => 1, 361 362 'categories' => $this->getCategories() 363 ]; 364 } elseif ($action === 'get_authors') { 365 $rs = [ 366 'result' => 1, 367 'authors' => $this->getAuthors() 362 368 ]; 363 369 } else { … … 698 704 * @return array<array<string, int|string>> 699 705 */ 706 public function getAuthors() 707 { 708 $users = get_users([ 709 'role__in' => ['administrator', 'author', 'editor'] 710 ]); 711 712 $result = []; 713 foreach ($users as $user) { 714 $result[] = [ 715 'id' => (int)$user->ID, 716 'login' => $user->data->user_login, 717 ]; 718 } 719 720 return $result; 721 } 722 723 /** 724 * @return array<array<string, int|string>> 725 */ 700 726 public function getCategories() 701 727 {
Note: See TracChangeset
for help on using the changeset viewer.