Skip to content

Development Docs, Guides & Best Practices

Miguel Pérez Pellicer edited this page May 19, 2022 · 2 revisions

Guides & Best Practices

Use The Core APIs

Using the core APIs when developing for WordPress and WooCommerce is strongly encouraged because:

  • Core APIs make building things easier by providing hooks, actions, filters, helper functions.
  • WordPress does the “heavy lifting” for you (database calls, input validation, security, form building) so you don’t have to.
  • Using core APIs helps ensure your code will be both backward-compatible and future-proof.
  • The APIs allow seamless integration into wp-admin for plugin/theme options pages, inline help documentation, etc.

Minimum Requirements / Compatibility

Aim for L-2 unless there are specific requirements needed.

As long as it’s clearly marked, and ideally handled properly (we don’t crash sites on older versions) setting the minimum level of support to newer versions is acceptable.