Plugin Directory

Changeset 3385553


Ignore:
Timestamp:
10/28/2025 04:12:05 AM (4 months ago)
Author:
wpgrids
Message:

Release 1.3.04

Location:
ai-content-generation
Files:
61 added
6 edited

Legend:

Unmodified
Added
Removed
  • ai-content-generation/trunk/inc/admin.php

    r3364535 r3385553  
    33function wpwand_settings_page()
    44{
     5
     6    if (current_user_can('manage_options')) :
    57    $openai_activate_text = WPWAND_OPENAI_KEY
    68        ? esc_html__('Active', 'wp-wand')
     
    419421    </div>
    420422<?php
     423    else : ?>
     424        <div class="wrap">
     425            <h2><?php echo esc_html(wpwand_brand_name()); ?></h2>
     426            <p><?php esc_html_e('You do not have sufficient permissions to access this page.', 'wp-wand'); ?></p>
     427        </div>
     428    <?php endif; ?>
     429<?php
    421430}
    422431
    423432function wpwand_register_menu()
    424433{
    425     add_menu_page(wpwand_brand_name(), wpwand_brand_name(), 'manage_options', 'wpwand', '', wpwand_loago_icon_url());
    426     add_submenu_page('wp-wand', wpwand_brand_name(), 'Settings', 'manage_options', 'wpwand', 'wpwand_settings_page');
     434    add_menu_page(wpwand_brand_name(), wpwand_brand_name(), 'edit_posts', 'wpwand', 'wpwand_settings_page', wpwand_loago_icon_url());
     435    add_submenu_page('wpwand', wpwand_brand_name(), 'Settings', 'edit_posts', 'wpwand', 'wpwand_settings_page');
    427436
    428437
     
    433442            '',
    434443            '',
    435             'manage_options',
     444            'edit_posts',
    436445            '',
    437446            ''
  • ai-content-generation/trunk/inc/editor.php

    r3211354 r3385553  
    88function wpwand_ai_buttons()
    99{
    10     if (is_admin() && current_user_can('manage_options')) {
     10    if (is_admin() && current_user_can('edit_posts')) {
    1111        ?>
    1212        <script>
     
    4848function wpwand_add_buttons($plugins)
    4949{
    50     if (current_user_can('manage_options')) {
     50    if (current_user_can('edit_posts')) {
    5151        $plugins['wpwandeditor'] = WPWAND_PLUGIN_URL . 'assets/js/classic-editor.js';
    5252    }
  • ai-content-generation/trunk/inc/gutenberg.php

    r3241564 r3385553  
    88{
    99    $wpwand_editor_button_menus = apply_filters('wpwand_editor_prompts', wpwand_editor_prompts());
    10     if (is_admin() && current_user_can('manage_options')) {
     10    if (is_admin() && current_user_can('edit_posts')) {
    1111        wp_enqueue_script(
    1212            'wpwand-gutenberg-custom-button',
  • ai-content-generation/trunk/inc/post-generator.php

    r3360273 r3385553  
    3737    function register_menu()
    3838    {
    39         add_submenu_page('wpwand', __('Bulk Posts', 'wp-wand'), __('Bulk Posts', 'wp-wand'), 'manage_options', 'wpwand-post-generator', [$this, 'post_generate_page']);
     39        add_submenu_page('wpwand', __('Bulk Posts', 'wp-wand'), __('Bulk Posts', 'wp-wand'), 'edit_posts', 'wpwand-post-generator', [$this, 'post_generate_page']);
    4040    }
    4141
  • ai-content-generation/trunk/readme.txt

    r3384592 r3385553  
    66Requires PHP: 8.3
    77Tested up to:  6.8.3
    8 Stable Tag: 1.3.03
     8Stable Tag: 1.3.04
    99License: GPL-2.0+
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    354354== Changelog ==
    355355
     356= 1.3.04 =
     357* New: WP Wand now available for Editor role.
     358
    356359= 1.3.03 =
    357360* Fixed: Dall E Image Generation Issue.
  • ai-content-generation/trunk/wp-wand.php

    r3384592 r3385553  
    55 * Plugin URI: https://wpwand.com/
    66 * Description: WP Wand is a AI content generation plugin for WordPress that helps your team create high quality content 10X faster and 50x cheaper. No monthly subscription required.
    7  * Version: 1.3.03
     7 * Version: 1.3.04
    88 * Author: WP Wand
    99 * Author URI: https://wpwand.com/
    1010 * Text Domain: wp-wand
    1111 * License: GPL-2.0+
    12  * Requires PHP: 7.4
     12 * Requires PHP: 8.3
    1313 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
    1414 */
     
    5050    define('WPWAND_AI_CHARACTER', '');
    5151
    52     if (!current_user_can('manage_options')) {
     52    if (!current_user_can('edit_posts')) {
    5353        return false;
    5454    }
Note: See TracChangeset for help on using the changeset viewer.