Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /proc/self/cwd/wp-content/plugins/colibri-page-builder/extend-builder/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/cwd/wp-content/plugins/colibri-page-builder/extend-builder/api/newsletter.php
<?php

namespace ExtendBuilder;

function wp_colibri_v1_newsletter_get_default_shortcode()
{
    if(!colibri_user_can_customize()) {
        return new \WP_REST_Response(null, 401);
    }
    return get_mailchimp_form_shortcode();
}


add_action('rest_api_init', function () {
    register_rest_route('colibri/v1', '/newsletter/default-shortcode', array(
        'methods' => 'GET',
        'callback' => '\ExtendBuilder\wp_colibri_v1_newsletter_get_default_shortcode',
        'permission_callback' => function () {
            return current_user_can( 'edit_theme_options' );
        }
    ));
});

Spamworldpro Mini