Plugin Directory

Changeset 3403609


Ignore:
Timestamp:
11/26/2025 06:13:12 PM (4 months ago)
Author:
instarank
Message:

Version 1.5.0 - Template scanning now includes drafts and private posts for all page builders

Location:
instarank/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • instarank/trunk/includes/class-page-builder-api.php

    r3402479 r3403609  
    705705        $templates = [];
    706706
    707         // Scan Elementor templates
     707        // Scan Elementor templates (including drafts)
    708708        if (class_exists('Elementor\Plugin')) {
    709709            $elementor_templates = get_posts([
    710710                'post_type' => 'elementor_library',
    711711                'posts_per_page' => -1,
    712                 'post_status' => 'publish'
     712                'post_status' => ['publish', 'draft', 'private']
    713713            ]);
    714714
     
    730730                    'type' => $template_type ?: 'page',
    731731                    'modified' => $template->post_modified,
     732                    'status' => $template->post_status,
    732733                    'url' => get_permalink($template->ID),
     734                    'edit_url' => admin_url('post.php?post=' . $template->ID . '&action=edit'),
    733735                    'content' => $elementor_data // Include the actual template content
    734736                ];
     
    736738        }
    737739
    738         // Scan Beaver Builder templates
     740        // Scan Beaver Builder templates (including drafts)
    739741        if (class_exists('FLBuilder')) {
    740742            $fl_templates = get_posts([
    741743                'post_type' => 'fl-builder-template',
    742744                'posts_per_page' => -1,
    743                 'post_status' => 'publish'
     745                'post_status' => ['publish', 'draft', 'private']
    744746            ]);
    745747
     
    754756                    'type' => 'layout',
    755757                    'modified' => $template->post_modified,
     758                    'status' => $template->post_status,
    756759                    'url' => get_permalink($template->ID),
     760                    'edit_url' => admin_url('post.php?post=' . $template->ID . '&action=edit'),
    757761                    'content' => $fl_data
    758762                ];
     
    760764        }
    761765
    762         // Scan Divi Library
     766        // Scan Divi Library (including drafts)
    763767        if (function_exists('et_divi_builder_init')) {
    764768            $divi_layouts = get_posts([
    765769                'post_type' => 'et_pb_layout',
    766770                'posts_per_page' => -1,
    767                 'post_status' => 'publish'
     771                'post_status' => ['publish', 'draft', 'private']
    768772            ]);
    769773
     
    778782                    'type' => 'layout',
    779783                    'modified' => $layout->post_modified,
     784                    'status' => $layout->post_status,
    780785                    'url' => get_permalink($layout->ID),
     786                    'edit_url' => admin_url('post.php?post=' . $layout->ID . '&action=edit'),
    781787                    'content' => $divi_content
    782788                ];
     
    868874        }
    869875
    870         // Scan Gutenberg reusable blocks
     876        // Scan Gutenberg reusable blocks (including drafts)
    871877        $reusable_blocks = get_posts([
    872878            'post_type' => 'wp_block',
    873879            'posts_per_page' => -1,
    874             'post_status' => 'publish'
     880            'post_status' => ['publish', 'draft', 'private']
    875881        ]);
    876882
     
    885891                'type' => 'reusable_block',
    886892                'modified' => $block->post_modified,
     893                'status' => $block->post_status,
    887894                'url' => admin_url('post.php?post=' . $block->ID . '&action=edit'),
     895                'edit_url' => admin_url('post.php?post=' . $block->ID . '&action=edit'),
    888896                'content' => $gutenberg_content
    889897            ];
  • instarank/trunk/instarank.php

    r3403597 r3403609  
    44 * Plugin URI: https://instarank.com/wordpress-plugin
    55 * Description: Connect your WordPress site to InstaRank for AI-powered SEO optimization, schema markup generation, and programmatic SEO. Create and sync custom post types, automatically apply SEO improvements, and generate structured data with InstaRank's AI engine.
    6  * Version: 1.4.9
     6 * Version: 1.5.0
    77 * Author: InstaRank
    88 * Author URI: https://instarank.com
     
    1818
    1919// Define plugin constants
    20 define('INSTARANK_VERSION', '1.4.9');
     20define('INSTARANK_VERSION', '1.5.0');
    2121define('INSTARANK_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2222define('INSTARANK_PLUGIN_URL', plugin_dir_url(__FILE__));
  • instarank/trunk/readme.txt

    r3403597 r3403609  
    44Requires at least: 5.6
    55Tested up to: 6.8
    6 Stable tag: 1.4.9
     6Stable tag: 1.5.0
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    159159== Changelog ==
    160160
     161= 1.5.0 =
     162* Feature: Template scanning now includes draft and private posts/pages (not just published)
     163* Feature: Improved template detection for page builder template libraries
     164* Enhancement: Added status field to all scanned templates for better visibility
     165* Enhancement: Added edit_url field to quickly access template editing
     166* Enhancement: Elementor templates now include draft, publish, and private statuses
     167* Enhancement: Beaver Builder templates now include draft, publish, and private statuses
     168* Enhancement: Divi Library layouts now include draft, publish, and private statuses
     169* Enhancement: Gutenberg reusable blocks now include draft, publish, and private statuses
     170
    161171= 1.4.9 =
    162172* Feature: Added DELETE endpoint for custom post types via REST API
Note: See TracChangeset for help on using the changeset viewer.