Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-reviews   php

Repository URL to install this package:

Version: 2.1.0 

/ jet-reviews / global / remove.php

<?php
$settings = $this->get_settings();

$content_source = isset( $settings['content_source'] ) ? $settings['content_source'] : 'manually';

$curent_user_id = $this->get_curent_user_id();

if ( ! $curent_user_id || 'post-meta' !== $content_source ) {
	return false;
}

$user_review_id = $review_data['user_id'];

if ( ! current_user_can('administrator') ) {
	return false;
}

?><div class="jet-review__item-remove"><div class="jet-review-remove-spinner"></div><i class="fa fa-trash"></i></div>