Plugin Directory

Changeset 3005018


Ignore:
Timestamp:
12/04/2023 10:17:46 AM (2 years ago)
Author:
ascendedcrow
Message:

Small Change to add Pagination

Location:
shop-2-api/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/includes/Base/EnqueueWCAPI.php

    r3001863 r3005018  
    1111class Shop2Api_EnqueueWCAPI
    1212{
     13
    1314    public function register(): void
    1415    {
     
    3334            $meta_value = esc_sql($request->get_param('meta_value'));
    3435            $compare_operator = $request->get_param('compare_operator');
     36            $page = max(1, $request->get_param('page'));
     37            $posts_per_page = 100;
    3538
    3639            $args = array(
     
    4043                        'key' => $meta_key,
    4144                        'value' => $meta_value,
    42                         'compare' => $compare_operator
     45                        'compare' => $compare_operator,
     46                        'posts_per_page' => -1,
    4347                    )
    44                 )
     48                ),
     49                'paged' => $page,
     50                'posts_per_page' => $posts_per_page,
    4551            );
    4652
  • shop-2-api/trunk/readme.txt

    r3001863 r3005018  
    33Plugin URI: https://wordpress.org/plugins/shop-2-api/
    44Tags: WooCommerce, Bol
    5 Stable Tag: 1.0.28.5
     5Stable Tag: 1.0.28.6
    66Requires at least: 5.0
    77Requires PHP: 7.2
  • shop-2-api/trunk/shop-2-api.php

    r3001863 r3005018  
    55Plugin URI: https://wordpress.org/plugins/shop-2-api/
    66Description: The plugin Shop2Api will sync products between e-Commerce platforms. The current supported e-Commerce platforms are WooCommerce to Bol.com, and we are working on Amazon, Shopify and others.  We added a koopblok service so that you can check if you lower your price can you get koopblok.
    7 Version: 1.0.28.5
     7Version: 1.0.28.6
    88Requires at least: 5.0
    99Requires PHP:      7.2
     
    3434define('SHOP2API_PLUGIN_URL', plugin_dir_url( __FILE__ ));
    3535define('SHOP2API_PLUGIN', plugin_basename( __FILE__ ));
    36 define ('VERSION', '1.0.28.5');
     36define ('VERSION', '1.0.28.6');
    3737
    3838// Register items in the project.
Note: See TracChangeset for help on using the changeset viewer.