Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez
Created May 28, 2019 13:53
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 DavidPeralvarez/c2e89dc1fff6677d096ac3ed35963823 to your computer and use it in GitHub Desktop.
Save DavidPeralvarez/c2e89dc1fff6677d096ac3ed35963823 to your computer and use it in GitHub Desktop.
Componentes de la API
<?php
/*
Plugin Name: API de Ajustes
Description: Aprendiendo a usar la Settings API
Text Domain: api-ajustes
Domain Path: /languages
*/
// Create new item in the admin menu
add_action( 'admin_menu', 'dp_ada_add_submenu' );
function dp_ada_add_submenu(){
add_options_page( esc_html__('API de Ajustes','api-ajustes') , esc_html__('API de Ajustes','api-ajustes'), 'manage_options', 'dp_ada_main_menu', 'dp_ada_main_menu_settings' );
}
// Render settings form
function dp_ada_main_menu_settings(){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment