Plugin Directory

Changeset 2770332


Ignore:
Timestamp:
08/14/2022 04:11:29 PM (4 years ago)
Author:
questiongenerator
Message:

add new endpoint get all pages

Location:
question-generator
Files:
20 added
3 edited

Legend:

Unmodified
Added
Removed
  • question-generator/trunk/connector/QGAPI.php

    r2770324 r2770332  
    2323            'post_info',
    2424            'version_check',
     25            'get_all_pages',
    2526            'reset_qg_plugin'
    2627        );
     
    5253        return self::api_success(get_posts(array('numberposts' => -1)));
    5354    }
     55
     56    public static function get_all_pages(){
     57        return self::api_success(get_pages(array('post_type'    => 'page',
     58        'post_status'  => 'publish')));
     59    }
     60
    5461
    5562    public static function post_info(WP_REST_Request $request){
  • question-generator/trunk/questiongenerator.php

    r2770324 r2770332  
    55Description: Your SEO Content Strategy, Smarter + Easier + Faster. Find relevant Search Intentions, run Smarter Content Marketing projects and Overcome Competitors by being the first to discover New Content Opportunities
    66Author: squareMX
    7 Version: 20220814
     7Version: 2022081402
    88*/
    99
  • question-generator/trunk/readme.txt

    r2770324 r2770332  
    77Contributors: questiongenerator
    88Tested up to: 6.0.1
    9 Stable tag: 20220814
    10 Version:    20220814
     9Stable tag: 2022081402
     10Version:    2022081402
    1111Requires PHP: 5.6.20
    1212Text Domain: question-generator
     
    6868
    6969== Changelog ==
     70= 2022081402 =
     71* add new endpoint get all pages
     72
    7073= 20220814 =
    7174* add new endpoints, get_all_post,post_info,version_check,reset_qg_plugin
Note: See TracChangeset for help on using the changeset viewer.