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/df5227c40d47c8e54e6ef2750afa9a38 to your computer and use it in GitHub Desktop.
Save ohyeahdev/df5227c40d47c8e54e6ef2750afa9a38 to your computer and use it in GitHub Desktop.
Opciones de Advanced Custom Fields con función de traducción
<?php
/*
* Description: Código que crear una página de opciones. Versión detallada con opciones preparadas para traducción
* 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', 'ohyd_textdomain'),
'menu_title' => __('Opciones Generales', 'ohyd_textdomain'),
'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