Plugin Directory

Changeset 3398845


Ignore:
Timestamp:
11/19/2025 10:57:15 AM (4 months ago)
Author:
quickcreator
Message:

update to 0.1.19

Location:
quickcreator
Files:
3 edited
22 copied

Legend:

Unmodified
Added
Removed
  • quickcreator/tags/0.1.19/includes/quickcreator/class-quickcreator.php

    r3383697 r3398845  
    225225        register_rest_route(
    226226            'quickcreatorblog/v1',
     227            '/change_post_status/',
     228            array(
     229                'methods'             => 'POST',
     230                'callback'            => array($this, 'quickcreator_change_post_status'),
     231                'permission_callback' => function ($request) {
     232                    return $this->verify_request_permission($request);
     233                },
     234                'args'                => array(),
     235            )
     236        );
     237
     238        register_rest_route(
     239            'quickcreatorblog/v1',
    227240            '/version/',
    228241            array(
     
    941954            );
    942955        }
     956    }
     957
     958    /**
     959     * Change post status
     960     *
     961     * @param WP_REST_Request $request - request object.
     962     * @return WP_REST_Response
     963     *
     964     */
     965    public function quickcreator_change_post_status($request)
     966    {
     967        $post_id = $request->get_param('post_id');
     968        $status = $request->get_param('status');
     969        wp_update_post(array('ID' => $post_id, 'post_status' => $status));
     970        return new WP_REST_Response(array(
     971            'post_id' => $post_id,
     972            'post_status' => $status,
     973        ));
    943974    }
    944975
  • quickcreator/tags/0.1.19/quickcreator.php

    r3383697 r3398845  
    44 * Plugin URI: https://wordpress.org/plugins/quickcreator/
    55 * Description: Create post with Quickcreator in WordPress
    6  * Version: 0.1.18
     6 * Version: 0.1.19
    77 * Author: Quickcreator
    88 * Author URI: https://quickcreator.io
     
    2222
    2323if ( ! defined( 'QUICKCREATOR_BLOG_VERSION' ) ) {
    24     define( 'QUICKCREATOR_BLOG_VERSION', '0.1.18' );
     24    define( 'QUICKCREATOR_BLOG_VERSION', '0.1.19' );
    2525}
    2626
  • quickcreator/tags/0.1.19/readme.txt

    r3383697 r3398845  
    55Requires PHP: 7.4
    66Tested up to: 6.8.1
    7 Stable tag: 0.1.18
     7Stable tag: 0.1.19
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • quickcreator/trunk/includes/quickcreator/class-quickcreator.php

    r3383697 r3398845  
    225225        register_rest_route(
    226226            'quickcreatorblog/v1',
     227            '/change_post_status/',
     228            array(
     229                'methods'             => 'POST',
     230                'callback'            => array($this, 'quickcreator_change_post_status'),
     231                'permission_callback' => function ($request) {
     232                    return $this->verify_request_permission($request);
     233                },
     234                'args'                => array(),
     235            )
     236        );
     237
     238        register_rest_route(
     239            'quickcreatorblog/v1',
    227240            '/version/',
    228241            array(
     
    941954            );
    942955        }
     956    }
     957
     958    /**
     959     * Change post status
     960     *
     961     * @param WP_REST_Request $request - request object.
     962     * @return WP_REST_Response
     963     *
     964     */
     965    public function quickcreator_change_post_status($request)
     966    {
     967        $post_id = $request->get_param('post_id');
     968        $status = $request->get_param('status');
     969        wp_update_post(array('ID' => $post_id, 'post_status' => $status));
     970        return new WP_REST_Response(array(
     971            'post_id' => $post_id,
     972            'post_status' => $status,
     973        ));
    943974    }
    944975
  • quickcreator/trunk/quickcreator.php

    r3383697 r3398845  
    44 * Plugin URI: https://wordpress.org/plugins/quickcreator/
    55 * Description: Create post with Quickcreator in WordPress
    6  * Version: 0.1.18
     6 * Version: 0.1.19
    77 * Author: Quickcreator
    88 * Author URI: https://quickcreator.io
     
    2222
    2323if ( ! defined( 'QUICKCREATOR_BLOG_VERSION' ) ) {
    24     define( 'QUICKCREATOR_BLOG_VERSION', '0.1.18' );
     24    define( 'QUICKCREATOR_BLOG_VERSION', '0.1.19' );
    2525}
    2626
  • quickcreator/trunk/readme.txt

    r3383697 r3398845  
    55Requires PHP: 7.4
    66Tested up to: 6.8.1
    7 Stable tag: 0.1.18
     7Stable tag: 0.1.19
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.