1. Go to this page and download the library: Download varunsridharan/wp-review-me library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
varunsridharan / wp-review-me example snippets
$review_instance = new Varunsridharan\WordPress\Review_Me(array(
'days_after' => 2,
'slug' => 'your-plugin',
'type' => 'plugin', # Use theme if you are using it in a theme
'site' => 'wordpress',
'rating' => 3 # review link will have a default count of rating 3 which sets rating to 3 in review form
));
/**
* $review_me is a instance of VS_WP_Review_Me Class
*/
function your_plugin_review_notice_add($review_me){
// use your custom notice handle to add / display the notice
}
$review_instance = new Varunsridharan\WordPress\Review_Me(array(
'days_after' => 2,
'slug' => 'your-plugin',
'type' => 'plugin', # Use theme if you are using it in a theme
'site' => 'wordpress',
'notice_callback' => 'your_plugin_review_notice_add'
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.