Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohyeahdev/b9312623543f8bf1bbf80d15958ab1b9 to your computer and use it in GitHub Desktop.
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
<?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