Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/** * Require the content field if the submitted rating is less than 4-stars * * Make sure to set the email field as not required in the Settings * otherwise this will do nothing. * * @param \GeminiLabs\SiteReviews\Request $request */ add_filter('site-reviews/validation/rules/normalized', function (array $rules, $request): array { if ($request->rating < 4) { $rules['content'] = 'required'; } return $rules; }, 10, 2);
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)