Created
February 4, 2019 19:42
-
-
Save ohyeahdev/b9312623543f8bf1bbf80d15958ab1b9 to your computer and use it in GitHub Desktop.
Crear una página de opciones más detallada con Advanced Custom Fields Pro
This file contains 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 | |
/* | |
* Description: Código que crear una página de opciones. Versión detallada. | |
* Tested with: ACF Pro V5.7 | |
* Author: @ohyeahdev | |
* Author URI: https://www.ohyeahdev.com | |
*/ | |
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_page(array( | |
'page_title' => 'Opciones Generales Cliente Tal', | |
'menu_title' => 'Opciones Generales', | |
'menu_slug' => 'ohyd_opciones_generales', | |
'capability' => 'edit_posts', | |
'redirect' => false | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment