Plugin Directory

Changeset 3341911


Ignore:
Timestamp:
08/09/2025 07:08:33 AM (8 months ago)
Author:
anantaddons
Message:
  • Fixed permalink issue.
Location:
anant-addons-for-elementor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anant-addons-for-elementor/trunk/anant-addons-for-elementor.php

    r3330574 r3341911  
    55* Author: Anantsites
    66* Author URI: https://anantsites.com/
    7 * Version: 1.2.2
     7* Version: 1.2.3
    88* License: GPLv3
    99* License URI: https://opensource.org/licenses/GPL-3.0
     
    1111* Domain Path: /languages
    1212*
    13 * Elementor tested up to: 3.30.2
     13* Elementor tested up to: 3.31.1
    1414*
    1515*/
     
    7474                define( 'ANANT_PATH', plugin_dir_path( ANANT ) );
    7575                define( 'ANANT_URL', plugin_dir_url( ANANT ) );
    76                 define( 'ANANT_VERSION', '1.2.2' ); //Plugin Version
     76                define( 'ANANT_VERSION', '1.2.3' ); //Plugin Version
    7777                define( 'ANANT_MIN_ELEMENTOR_VERSION', '3.0.0' ); //MINIMUM ELEMENTOR Plugin Version
    7878                define( 'ANANT_MIN_PHP_VERSION', '7.4' ); //MINIMUM PHP Plugin Version
     
    238238    }
    239239    add_action( 'plugins_loaded', 'anant_addons_register_function' );
     240
     241    function anant_addons_activation() {
     242        global $wp_rewrite;
     243        $wp_rewrite->set_permalink_structure('/%postname%/');
     244        $wp_rewrite->flush_rules();
     245    }
     246    register_activation_hook(__FILE__, 'anant_addons_activation');
    240247}
    241248
  • anant-addons-for-elementor/trunk/inc/templates/style-1/product-grid-template.php

    r3189221 r3341911  
    3333            <?php
    3434            foreach ($products as $product) {
     35                if (!is_object($product) || !method_exists($product, 'get_id')) {
     36                    continue;
     37                }
    3538                $product_id = $product->get_id();
    3639                $terms = get_the_terms( $product_id , 'product_cat' );
  • anant-addons-for-elementor/trunk/readme.txt

    r3330574 r3341911  
    55Requires PHP: 7.4
    66Tested up to: 6.8
    7 Stable tag: 1.2.2
    8 Version: 1.2.2
     7Stable tag: 1.2.3
     8Version: 1.2.3
    99License: GPLv3 or later
    1010License URI: https://opensource.org/licenses/GPL-3.0
     
    146146
    147147== Changelog ==
     148= 1.2.3 =
     149* Fixed permalink issue.
    148150= 1.2.2 =
    149151* Fixed styling related issues.
Note: See TracChangeset for help on using the changeset viewer.