Plugin Directory

Changeset 3430755


Ignore:
Timestamp:
01/01/2026 09:03:22 PM (3 months ago)
Author:
wpdive
Message:

1.0.4 release

Location:
rankjet-ai
Files:
38 added
4 edited

Legend:

Unmodified
Added
Removed
  • rankjet-ai/trunk/inc/init/class-rankjet-ai-init.php

    r3417461 r3430755  
    1818        require_once RANKJET_AI_PLUGIN_DIR . 'inc/admin/class-rankjet-ai-admin.php';
    1919        require_once RANKJET_AI_PLUGIN_DIR . 'inc/integration/class-rankjet-ai-platform-integration.php';
     20        require_once RANKJET_AI_PLUGIN_DIR . 'inc/services/class-rankjet-ai-content-service.php';
    2021        require_once RANKJET_AI_PLUGIN_DIR . 'inc/integration/class-rankjet-ai-page-data-handler.php';
     22        require_once RANKJET_AI_PLUGIN_DIR . 'inc/editor/class-rankjet-ai-editor.php';
    2123    }
    2224
     
    2527        new Rankjet_Ai_Platform_Integration();
    2628        new Rankjet_Ai_Page_Data_Handler();
     29        new Rankjet_Ai_Editor();
    2730    }
    2831}
  • rankjet-ai/trunk/inc/integration/class-rankjet-ai-platform-integration.php

    r3422221 r3430755  
    1212
    1313    public function __construct() {
    14         // Set the API base URL based on environment
    15         $this->api_base_url = defined('RANKJET_API_URL') ? RANKJET_API_URL : 'https://app.rankjet.ai/api/v1';
     14        // Set the API base URL based on environment or setting
     15        $config_url = get_option('rankjet_platform_api_url');
     16        if (!empty($config_url)) {
     17            $this->api_base_url = rtrim($config_url, '/');
     18        } else {
     19            $this->api_base_url = defined('RANKJET_API_URL') ? RANKJET_API_URL : 'https://app.rankjet.ai/api/v1';
     20        }
    1621       
    1722        // Load saved credentials
     
    5560        register_setting('rankjet_platform_settings', 'rankjet_platform_api_token');
    5661        register_setting('rankjet_platform_settings', 'rankjet_platform_website_id');
     62        register_setting('rankjet_platform_settings', 'rankjet_platform_api_url');
    5763        register_setting('rankjet_platform_settings', 'rankjet_platform_auto_sync');
    5864        register_setting('rankjet_platform_settings', 'rankjet_platform_last_sync');
     
    6975        $api_token = $this->api_token;
    7076        $website_id = $this->website_id;
     77        $api_url = get_option('rankjet_platform_api_url', '');
    7178        $auto_sync = get_option('rankjet_platform_auto_sync', 'yes');
    7279        $last_sync = get_option('rankjet_platform_last_sync', '');
     
    113120                    </tr>
    114121                   
     122                    <tr>
     123                        <th scope="row">
     124                            <label for="rankjet_platform_api_url"><?php echo esc_html__('API URL', 'rankjet-ai'); ?></label>
     125                        </th>
     126                        <td>
     127                            <input type="text"
     128                                   id="rankjet_platform_api_url"
     129                                   name="rankjet_platform_api_url"
     130                                   value="<?php echo esc_attr($api_url); ?>"
     131                                   class="regular-text" />
     132                            <p class="description">
     133                                <?php echo esc_html__('Base API URL. Leave empty to use default (app.rankjet.ai). For local dev: http://your-local-site/api/v1', 'rankjet-ai'); ?>
     134                            </p>
     135                        </td>
     136                    </tr>
     137
    115138                    <tr>
    116139                        <th scope="row">
     
    307330        $token = sanitize_text_field($_POST['token']);
    308331        $website_id = sanitize_text_field($_POST['website_id']);
     332        // API URL is saved via normal form submission usually, but if updated during test/save flow:
     333        // We generally rely on the form save for URL.
    309334
    310335        // Save the options
     
    514539     * Make API request to platform
    515540     */
    516     private function make_api_request($endpoint, $method = 'GET', $data = []) {
     541    public function make_api_request($endpoint, $method = 'GET', $data = []) {
    517542        $url = $this->api_base_url . $endpoint;
    518543       
     
    556581    }
    557582}
     583
  • rankjet-ai/trunk/rankjet-ai.php

    r3429309 r3430755  
    44Plugin URI: https://rankjet.ai/
    55Description: AI-powered SEO plugin that helps you optimize your WordPress site with AI-generated meta tags, keyword suggestions, and content analysis.
    6 Version: 1.0.3
     6Version: 1.0.4
    77Author: wpdive
    88Author URI: https://wpdive.com
  • rankjet-ai/trunk/readme.txt

    r3429309 r3430755  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.