function add_administrador_tema_role() { //nombre de nuestra función, puede ser el nombre que quieras add_role( 'administrador_tema', //Nombre de role. 'Administrador Tema', //Nombre que se visualará en la creación o página de opciones de usuarios. array( 'read' => true, //Permite el acceso al dashboard del adminitrador. 'switch_themes' => true, //Permite el cambio de temas. 'edit_themes' => true, //Permite editar archivos desde el administrado de archivos del tema. 'edit_theme_options' => true, //Permite modificar Widgets,Menús, Personalizar. 'install_themes' => true, //Permite instalar temas nuevos. 'update_themes' => true, //Permite actualizar temas instalados. 'delete_themes' => true, //Permite eliminar temas. ) //Array con las capabilities ); } //add_action(Hook, Nombre de la función) add_action('init', 'add_administrador_tema_role');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter