Created
October 14, 2022 08:25
-
-
Save Oscar-Abad-Folgueira/f5ff7f4283a2d832cedc8ef7aac2b126 to your computer and use it in GitHub Desktop.
ACF Snippet: Obtener los ajustes de un campo de ACF. - get_field_object()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @snippet ACF Snippet: Obtener los ajustes de un campo de ACF. | |
| * @author Oscar Abad Folgueira | |
| * @author_url https://www.oscarabadfolgueira.com | |
| * @snippet_url https://oscarabadfolgueira.com | |
| */ | |
| $campo = get_field_object( 'field_6124b36041b98' ); | |
| // Esto devuelve un array con los campos que contiene |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment