You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we listen to WordPress events on Symfony like post creation, post updates, etc...?
Additionally, will Sword will supports profiling WordPress-related routes and executions?
The project seems amazing, I'm really excited to go deeply into it and make something with it.
The text was updated successfully, but these errors were encountered:
WordPress is launched after Symfony's kernel.controller event, it's a fallback route with low priority. So yes you can listen to WordPress events in Symfony using WordpressService interface and adding your hooks in initialize(). You can see an example here: https://getsword.com/guide/tutorial/services.html
For the profiling unfortunately it's a bit complex to integrate it into Symfony therefore I haven't spent time on it, however you can still use QueryMonitor plugin in Wordpress.
Hi.
Can we listen to WordPress events on Symfony like post creation, post updates, etc...?
Additionally, will Sword will supports profiling WordPress-related routes and executions?
The project seems amazing, I'm really excited to go deeply into it and make something with it.
The text was updated successfully, but these errors were encountered: