Changeset 3403609
- Timestamp:
- 11/26/2025 06:13:12 PM (4 months ago)
- Location:
- instarank/trunk
- Files:
-
- 3 edited
-
includes/class-page-builder-api.php (modified) (8 diffs)
-
instarank.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
instarank/trunk/includes/class-page-builder-api.php
r3402479 r3403609 705 705 $templates = []; 706 706 707 // Scan Elementor templates 707 // Scan Elementor templates (including drafts) 708 708 if (class_exists('Elementor\Plugin')) { 709 709 $elementor_templates = get_posts([ 710 710 'post_type' => 'elementor_library', 711 711 'posts_per_page' => -1, 712 'post_status' => 'publish'712 'post_status' => ['publish', 'draft', 'private'] 713 713 ]); 714 714 … … 730 730 'type' => $template_type ?: 'page', 731 731 'modified' => $template->post_modified, 732 'status' => $template->post_status, 732 733 'url' => get_permalink($template->ID), 734 'edit_url' => admin_url('post.php?post=' . $template->ID . '&action=edit'), 733 735 'content' => $elementor_data // Include the actual template content 734 736 ]; … … 736 738 } 737 739 738 // Scan Beaver Builder templates 740 // Scan Beaver Builder templates (including drafts) 739 741 if (class_exists('FLBuilder')) { 740 742 $fl_templates = get_posts([ 741 743 'post_type' => 'fl-builder-template', 742 744 'posts_per_page' => -1, 743 'post_status' => 'publish'745 'post_status' => ['publish', 'draft', 'private'] 744 746 ]); 745 747 … … 754 756 'type' => 'layout', 755 757 'modified' => $template->post_modified, 758 'status' => $template->post_status, 756 759 'url' => get_permalink($template->ID), 760 'edit_url' => admin_url('post.php?post=' . $template->ID . '&action=edit'), 757 761 'content' => $fl_data 758 762 ]; … … 760 764 } 761 765 762 // Scan Divi Library 766 // Scan Divi Library (including drafts) 763 767 if (function_exists('et_divi_builder_init')) { 764 768 $divi_layouts = get_posts([ 765 769 'post_type' => 'et_pb_layout', 766 770 'posts_per_page' => -1, 767 'post_status' => 'publish'771 'post_status' => ['publish', 'draft', 'private'] 768 772 ]); 769 773 … … 778 782 'type' => 'layout', 779 783 'modified' => $layout->post_modified, 784 'status' => $layout->post_status, 780 785 'url' => get_permalink($layout->ID), 786 'edit_url' => admin_url('post.php?post=' . $layout->ID . '&action=edit'), 781 787 'content' => $divi_content 782 788 ]; … … 868 874 } 869 875 870 // Scan Gutenberg reusable blocks 876 // Scan Gutenberg reusable blocks (including drafts) 871 877 $reusable_blocks = get_posts([ 872 878 'post_type' => 'wp_block', 873 879 'posts_per_page' => -1, 874 'post_status' => 'publish'880 'post_status' => ['publish', 'draft', 'private'] 875 881 ]); 876 882 … … 885 891 'type' => 'reusable_block', 886 892 'modified' => $block->post_modified, 893 'status' => $block->post_status, 887 894 'url' => admin_url('post.php?post=' . $block->ID . '&action=edit'), 895 'edit_url' => admin_url('post.php?post=' . $block->ID . '&action=edit'), 888 896 'content' => $gutenberg_content 889 897 ]; -
instarank/trunk/instarank.php
r3403597 r3403609 4 4 * Plugin URI: https://instarank.com/wordpress-plugin 5 5 * 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.96 * Version: 1.5.0 7 7 * Author: InstaRank 8 8 * Author URI: https://instarank.com … … 18 18 19 19 // Define plugin constants 20 define('INSTARANK_VERSION', '1. 4.9');20 define('INSTARANK_VERSION', '1.5.0'); 21 21 define('INSTARANK_PLUGIN_DIR', plugin_dir_path(__FILE__)); 22 22 define('INSTARANK_PLUGIN_URL', plugin_dir_url(__FILE__)); -
instarank/trunk/readme.txt
r3403597 r3403609 4 4 Requires at least: 5.6 5 5 Tested up to: 6.8 6 Stable tag: 1. 4.96 Stable tag: 1.5.0 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 159 159 == Changelog == 160 160 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 161 171 = 1.4.9 = 162 172 * Feature: Added DELETE endpoint for custom post types via REST API
Note: See TracChangeset
for help on using the changeset viewer.