New answers tagged

2 votes

Event on new user created

Try $isNew = $user->isNewForSite.
James Smith's user avatar
  • 5,004
3 votes

Deployment strategy that removes tables from uninstalled plugins

The trick is to do it in two separate steps… Uninstall the plugin via Craft. Push those changes all the way through to your production environment. Uninstall the plugin via Composer. Push those ...
Lindsey D's user avatar
  • 24k
1 vote

How to get field values by specific field type from all Entries?

I found a way: This function checks recursively whether a field exists with the searched type, if it is a matrix field then it searches further in it. private function filterFieldsByType($blocks, $...
antdev's user avatar
  • 135

Top 50 recent answers are included