',
''
);
$actions[] = sprintf(
__( '%1$sNope, maybe later%2$s', 'flexible-shipping' ),
'',
''
);
$actions[] = sprintf(
__( '%1$sI already did%2$s', 'flexible-shipping' ),
'',
''
);
return $actions;
}
/**
* Should show message
*
* @return bool
*/
public function should_show_message() {
$total_orders = intval( get_option( Flexible_Shipping_Order_Counter::FS_ORDER_COUNTER, '0' ) );
if ( $total_orders >= 100 ) {
return true;
}
return false;
}
/**
* Get rate message
*
* @return string
*/
protected function get_message() {
$message = __( 'Awesome, you just crossed the 100 orders on Flexible Shipping method. Could you please do me a BIG favor and give it a 5-star rating on WordPress? ~ Peter', 'flexible-shipping' );
$message .= '
';
$message .= implode( ' | ', $this->action_links() );
return $message;
}
}