Title: Register fields via PHP
Last modified: November 24, 2023

---

# Register fields via PHP

 *  [valousal](https://wordpress.org/support/users/valentinanamorphik/)
 * (@valentinanamorphik)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/register-fields-via-php-3/)
 * Hi,
 * I register ACF fields in PHP.
   [https://www.advancedcustomfields.com/resources/register-fields-via-php/](https://www.advancedcustomfields.com/resources/register-fields-via-php/)
 * Does your mod work with that?
 *     ```wp-block-code
       acf_add_local_field_group( $field_group )
       ```
   
 * The module detected orphan fields in a custom post. These fields were filled 
   in.
 * Thanks.

The topic ‘Register fields via PHP’ is closed to new replies.

 * ![](https://ps.w.org/whatwedo-acf-cleaner/assets/icon-256x256.jpg?rev=2901561)
 * [whatwedo ACF Cleaner](https://wordpress.org/plugins/whatwedo-acf-cleaner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/whatwedo-acf-cleaner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/whatwedo-acf-cleaner/)
 * [Active Topics](https://wordpress.org/support/plugin/whatwedo-acf-cleaner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/whatwedo-acf-cleaner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/whatwedo-acf-cleaner/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [valousal](https://wordpress.org/support/users/valentinanamorphik/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/register-fields-via-php-3/)
 * Status: not resolved