PHP code example of duckdev / wp-review-notice
1. Go to this page and download the library: Download duckdev/wp-review-notice 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/ */
duckdev / wp-review-notice example snippets
// Setup notice.
$notice = \DuckDev\Reviews\Notice::get(
'my-plugin', // Plugin slug on wp.org (eg: hello-dolly).
'My Plugin', // Plugin name (eg: Hello Dolly).
array(
'days' => 7, // default: 7 days.
'message' => 'My custom message asking for review', // If you want to use different review notice message.
'action_labels' => array(
'review' => 'Please review me', // Change review link label.
'later' => 'I will review later', // Change review extension link.
'dismiss' => 'Nope', // No review label :(.
),
)
);
// Render notice.
$notice->render();