mAAdhaTTah / wordpress-github-sync

A WordPress plugin to sync content with a GitHub repository (or Jekyll site)
https://wordpress.org/plugins/wp-github-sync/
GNU General Public License v3.0
613 stars 99 forks source link

What would be the best way to debug hooks/filters? #188

Open ju5t opened 7 years ago

ju5t commented 7 years ago

For a project we need to store posts into a folder based on the category they are in. This needs to be a tree structure, e.g. categorya/categoryb. I've seen other people working on it by searching previous issues but unfortunately nobody has shared the final solution.

I know we can get there by using the filter for wpghs_directory_published but after that I'm a little lost. Primarily because I can't seem to get any debug data displayed.

It's been a while since I have worked with PHP so me not knowing how to code it can be a huge reason here. Some help on how to debug would be much appreciated though.

mAAdhaTTah commented 6 years ago

I unfortunately don't have a good answer for you besides just making the changes and testing them yourself.