{"id":173922,"date":"2024-02-01T13:54:08","date_gmt":"2024-02-01T08:24:08","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=173922"},"modified":"2024-02-01T14:01:17","modified_gmt":"2024-02-01T08:31:17","slug":"gutenberg-template-library-user-roles-permissions","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/gutenberg-template-library-user-roles-permissions\/","title":{"rendered":"Gesti\u00f3n de roles y permisos de usuario para la biblioteca de plantillas de Gutenberg"},"content":{"rendered":"<p>Es posible que ya conozca el <strong>Kits de plantillas<\/strong> disponible en tu editor Gutenberg si tienes instalado el plugin Starter Templates o el Spectra.  <\/p>\n\n\n\n<p>Por defecto, el bot\u00f3n Kits de plantillas s\u00f3lo es accesible para el administrador del sitio web. Esto garantiza una experiencia de usuario optimizada y evita acciones involuntarias en su sitio web. <\/p>\n\n\n\n<p>Sin embargo, hemos recibido algunas preguntas de nuestros usuarios sobre la posibilidad de proporcionar kits de plantillas o acceso a la biblioteca de plantillas a grupos de usuarios espec\u00edficos, como el rol de editor.  <\/p>\n\n\n\n<p>Hemos escuchado sus comentarios alto y claro, y hemos creado un fragmento para ayudarle a gestionar las capacidades personalizadas para los roles de usuario no administrador. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-173922-_88qasrbjejms\"><\/a><strong>Concesi\u00f3n de permisos completos a los usuarios de la funci\u00f3n de editor<\/strong><\/h2>\n\n\n\n<p>Para conceder permisos completos a los usuarios con el rol de editor, los administradores pueden utilizar un simple filtro.  <\/p>\n\n\n\n<p>A\u00f1adiendo el siguiente fragmento de c\u00f3digo a su configuraci\u00f3n, los administradores pueden ampliar las funciones para incluir el rol de editor. <\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'ast_block_template_capability_additional_roles', function ( $roles ) { \n\n      $roles&#91;] = 'editor';\n\n      return $roles;\n\n   } );<\/code><\/pre>\n\n\n\n<p>Este filtro se dirige espec\u00edficamente al hook 'ast_block_template_capability_additional_roles', permitiendo a los administradores a\u00f1adir el rol 'editor' al conjunto de roles con capacidades adicionales. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-173922-_n4lejot0ulr5\"><\/a><strong>A\u00f1adir el filtro a su sitio web<\/strong><\/h2>\n\n\n\n<p>A\u00f1adir este filtro a su sitio WordPress es bastante sencillo. S\u00f3lo tienes que seguir estos sencillos pasos:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Acceder a la <strong>funciones.php<\/strong> dentro de su tema o tema hijo. Puede editarlo directamente accediendo a <strong>Apariencia<\/strong> > <strong>Editor de archivos tem\u00e1ticos <\/strong>o utilizando cualquiera de los <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">plugins de fragmentos de c\u00f3digo<\/a>.   <\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copie y pegue el c\u00f3digo del filtro proporcionado en el campo <strong>funciones.php <\/strong>archivo.   <\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Guarde los cambios en <strong>funciones.php<\/strong> archivo.   <\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Aseg\u00farese de que los usuarios con el rol de editor tengan ahora acceso completo a la Biblioteca Gutenberg, incluida la visibilidad de la funci\u00f3n <strong>Kits de plantillas<\/strong> bot\u00f3n.   <\/li>\n<\/ul>\n\n\n\n<p>Ya est\u00e1. En este momento, s\u00f3lo los administradores del sitio web tienen control total sobre la biblioteca de plantillas. Hemos a\u00f1adido formas para que otros roles de usuario puedan acceder a partes de ella, tambi\u00e9n.  <\/p>\n\n\n\n<p>Ahora, los administradores pueden dar acceso completo a los editores, facilitando as\u00ed el trabajo de todos en su sitio web o aplicaci\u00f3n.  <\/p>\n\n\n\n<p>Esto significa que puedes configurar las cosas exactamente como las necesites, dependiendo de qui\u00e9n haga qu\u00e9. <\/p>\n\n\n\n<p>Espero que esta gu\u00eda te haya ayudado. Si tienes alguna pregunta, no dudes en ponerte en contacto con nuestro equipo de asistencia. <\/p>","protected":false},"excerpt":{"rendered":"<p>Puede que ya est\u00e9s familiarizado con el bot\u00f3n Template Kits disponible en tu editor Gutenberg si tienes instalado el plugin Starter Templates o el Spectra. Por defecto, el bot\u00f3n Template Kits solo es accesible para el administrador del sitio web. Esto garantiza una experiencia de usuario optimizada y evita acciones involuntarias en su sitio web. Sin embargo, hemos recibido [...]<\/p>","protected":false},"author":109,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[103],"docs_tag":[],"class_list":{"0":"post-173922","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-custom-code-snippets"},"spectra_custom_meta":{"_edit_lock":["1706776801:109"],"rank_math_internal_links_processed":["1"],"rank_math_seo_score":["12"],"rank_math_primary_docs_category":["103"],"_uag_custom_page_level_css":[""],"ast-site-content-layout":["default"],"theme-transparent-header-meta":[""],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"_edit_last":["109"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"views":["1949"],"_trp_automatically_translated_slug_es_ES":["roles-de-usuario-y-permisos-para-la-biblioteca-de-plantillas-gutenberg"],"_wp_old_slug":["user-roles-and-permissions-for-gutenberg-template-library"],"pfd_related_docs":[""],"helpful":["5"],"unhelpful":["5"],"redirects":["0"],"_uag_page_assets":["a:9:{s:3:\"css\";s:2495:\".wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:7:{i:0;s:14:\"core\/paragraph\";i:1;s:12:\"core\/heading\";i:2;s:9:\"core\/code\";i:3;s:9:\"core\/list\";i:4;s:14:\"core\/list-item\";i:5;s:14:\"uagb\/container\";i:6;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776562206\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Pratik Haldankar","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/pratikh\/"},"uagb_comment_info":0,"uagb_excerpt":"You may already be familiar with the Template Kits button available in your Gutenberg editor if you have either Starter Templates or the Spectra plugin installed. By default, the Template Kits button is accessible only to the website administrator. This ensures a streamlined user experience and prevents unintended actions on your website. However, we received&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/173922"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/109"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=173922"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/173922\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=173922"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=173922"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=173922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}