Skip to content

Instantly share code, notes, and snippets.

@Oscar-Abad-Folgueira
Oscar-Abad-Folgueira / acf-field-registration-example.php
Created June 16, 2023 14:11 — forked from mgburns/acf-field-registration-example.php
Example programmatic registration of Advanced Custom Fields fields
<?php
/**
* Example programmatic registration of Advanced Custom Fields fields
*
* @see http://www.advancedcustomfields.com/resources/register-fields-via-php/
*/
function register_custom_acf_fields() {
if ( function_exists( 'acf_add_local_field_group' ) ) {