Last active
March 17, 2020 01:05
-
-
Save Tmeister/7b634723ec05ac5af6f0f7b44646f21e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Proof of Concept | |
*/ | |
$settings = [ | |
[ | |
'id' => 1, | |
'trigger' => 'comment_post', | |
'action' => 'delete', | |
'rule' => 'status:==:spam', | |
'ui' => [ | |
'actor' => 'comment', | |
'action' => 'is created', | |
'rules' => [ | |
[ | |
'label' => 'and the status is %options% %action%', | |
'term' => 'status', | |
'action' => 'delete' | |
'options' => [ | |
'1' => 'approved', | |
'0' => 'not approved', | |
'spam' => 'spam' | |
] | |
] | |
], | |
'label' => 'When a %actor% %action% %rules%' | |
] | |
], | |
[ | |
'id' => 2, | |
'trigger' => 'comment_post', | |
'action' => 'delete', | |
'rule' => 'status:==:spam', | |
'ui' => [ | |
'actor' => 'comentario', | |
'action' => 'es creado', | |
'rules' => [ | |
[ | |
'label' => 'y el estatus es %options% %action%', | |
'term' => 'status', | |
'action' => 'borralo' | |
'options' => [ | |
'1' => 'aprobado', | |
'0' => 'no aprobado', | |
'spam' => 'spam' | |
] | |
] | |
], | |
'label' => 'Cuando un %actor% %action% %rules%' | |
] | |
], | |
]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment