racmanuel

racmanuel

How to include Advanced Custom Fields (Free) in a custom WordPress plugin with Composer?

hands on a laptop keyboard

Including ACF Pro in a WordPress project via Composer is already a simple task, but recently, a client project required me to include the free version of Advanced Custom Fields in a plugin I'm working on for them. WordPress Packagist makes this very easy when running Composer on a WordPress installation, but by default, it will install any plugin dependencies in `/wp-content/themes`. In this short tutorial, I'll show you how to include the free version of Advanced Custom Fields in a custom plugin.