for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GeminiLabs\SiteReviews\Shortcodes;
use GeminiLabs\SiteReviews\Shortcodes\Shortcode;
class SiteReviewsFormShortcode extends Shortcode
{
protected $hiddenKeys = [
'email', 'name', 'terms', 'title',
];
/**
* @return array
*/
protected function sanitize( array $args )
if( empty( $args['id'] )) {
$args['id'] = substr( md5( serialize( $args )), 0, 8 );
}
return $args;