plugin_name = $plugin_name; $this->transient_name = $transient_name; $this->installed_time = get_option($installed_time); $this->review_url = $review_url; add_action( 'admin_notices', array($this, 'leave_a_review') ); add_action( 'admin_footer', array($this, 'review_script') ); add_action( 'wp_ajax_wb_alm_review_transient', array($this, 'set_review_transient') ); } /** * Admin notice * * Request for leave a review * * @since 1.0.1 * * @access public */ public function leave_a_review() { $review_transient = get_transient($this->transient_name); // delete_transient($this->transient_name); $current_time = current_time('timestamp'); $first_active_time = $this->installed_time; $next_review_time = strtotime('+10 days', $first_active_time); // echo $next_review_time;die(); if( ($review_transient != 'reviewed') && ( isset($next_review_time) && ($next_review_time > 0) && ($current_time > $next_review_time) ) ){ ?>
Hello! Seems like you've been using plugin_name); ?> for a long time.
Could you please do us a BIG favor and give it a 5-star rating on WordPress? This would boost our motivation and help other users make a comfortable decision while choosing the plugin_name); ?> Plugin