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 :  /home/corals/mets.corals.io/wp-content/plugins/advanced-gutenberg/review/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/advanced-gutenberg/review/review-request.php
<?php

use PublishPress\WordPressReviews\ReviewsController;

if( !class_exists('AdvancedGutenberg_Reviews') ) {
	class AdvancedGutenberg_Reviews
	{
		/**
	    * @var  ReviewsController
	    */
	    private $reviewController;

	    public function __construct()
	    {
	        $this->reviewController = new ReviewsController(
	            'advanced-gutenberg',
	            'PublishPress Blocks',
	            esc_url(plugins_url('assets/images/logo-notice.png', dirname(__FILE__)))
	        );
	    }

	    public function init()
	    {
	        add_filter('publishpress_wp_reviews_display_banner_publishpress', [$this, 'shouldDisplayBanner']);

	        $this->reviewController->init();
	    }

	    public function shouldDisplayBanner($shouldDisplay)
	    {
	        if (! is_admin() || ! current_user_can('edit_posts')) {
	            return false;
	        }

	        return true;
	    }
	}

	function advanced_gutenberg_ask_for_review()
	{
	    $review = new AdvancedGutenberg_Reviews;
	    $review->init();
	}
	add_action('plugins_loaded', 'advanced_gutenberg_ask_for_review');
}

Spamworldpro Mini