How to create extendable wordpress plugins

The following: Use hooks and filters to power things. Pass args into a filter before doing things with them, pass return values to filters before returning them, etc, hooks and filters everywhere namespace everything, tomjn_twittercount is a better function name than twittercount Practice good common sense generic programming, e.g. use dependency injection, use proper OOP … Read more

Best way to manage a lot of pages in Wp Admin [closed]

This has been a reoccurring issue in WordPress. See these old trac links that are 9, 7 and 6 years-old respectively: https://core.trac.wordpress.org/ticket/3614, https://core.trac.wordpress.org/ticket/5303, https://core.trac.wordpress.org/ticket/14579 The challenge is that WordPress was built primarily for chronological posts since it began as a blogging tool. Page management was always secondary. WordPress still lacks an elegant solution for large-scale … Read more

Core framework/helpers for logging stuff?

WordPress makes use of the reliable PHP error logging. It provides an API of it’s own and it’s fully documented here: Error Handling and Logging and often it’s already well integrated into server configurations. For optional logging you can just use trigger_error() with it’s default error-type notice (E_USER_NOTICE). Doing so will ensure you’re streamlined with … Read more