{"id":372778,"date":"2023-04-05T08:44:42","date_gmt":"2023-04-05T08:44:42","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=372778"},"modified":"2024-07-03T09:01:12","modified_gmt":"2024-07-03T09:01:12","slug":"how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/","title":{"rendered":"How to create a custom role and user globally for WordPress Multisite."},"content":{"rendered":"\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">What is WordPress Multisite<\/h3>\n<\/div><\/div>\n\n\n\n<p>WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites from a single WordPress dashboard. This lets you easily make changes and keep all of your websites updated from one place.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">What are the roles in WordPress<\/h3>\n<\/div><\/div>\n\n\n\n<p>WordPress has six predefined roles: <strong>Super Admin<\/strong>, <strong>Administrator<\/strong>, <strong>Editor<\/strong>,<strong> Author<\/strong>, <strong>Contributor<\/strong>, and <strong>Subscriber<\/strong>. Each role is allowed to perform a set of tasks called Capabilities. That means capabilities for each type of role are different.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Why do we need to create a custom role in WordPress..?<\/h3>\n<\/div><\/div>\n\n\n\n<p>If you want to create a user with limited capabilities then you can create a custom role and assign this role to the same capabilities that you want.<\/p>\n\n\n\n<p>WordPress provides five functions for managing WordPress roles and capabilities:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>add_role()<\/strong>: For adding a custom role.<\/li>\n\n\n\n<li><strong>remove_role()<\/strong>: For removing a custom role.<\/li>\n\n\n\n<li><strong>add_cap()<\/strong>: For adding a custom capability to a role.<\/li>\n\n\n\n<li><strong>remove_cap()<\/strong>: For removing a custom capability from a role.<\/li>\n\n\n\n<li><strong>get_role ()<\/strong>: Gets information about the role and its capabilities. <\/li>\n<\/ul>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">How to create a custom role globally..?<\/h3>\n<\/div><\/div>\n\n\n\n<pre class=\"EnlighterJSRAW\">function wk_add_new_roles() {\n\n\tglobal $wpdb;\n\n\tadd_role( &#039;wk_custom_role&#039;, esc_html__( &#039;Custom Role&#039;, &#039;wk-text-domain&#039;), array(\n\t\t\t&#039;read&#039;                   =&gt; true,\n\t\t\t&#039;level_0&#039;                =&gt; true,\n\t\t\t&#039;edit_posts&#039;             =&gt; true,\n\t\t\t&#039;publish_posts&#039;          =&gt; true,\n\t\t\t&#039;edit_published_posts&#039;   =&gt; true,\n\t\t\t&#039;edit_others_posts&#039;      =&gt; true,\n\t\t\t&#039;edit_private_posts&#039;     =&gt; true,\n\t\t)\n\t);\n\n\t$main_user_roles = get_option( $wpdb-&gt;prefix . &#039;user_roles&#039; );\n\n\t\/\/ Get all store using(get_sites()) this method \n\t$blogs = get_sites();\n\n\tforeach ( $blogs as $key =&gt; $blog ) {\n\n\t\t\/\/ Skip current store as it has allready created above\n\t\tif( get_current_blog_id() !== $blog-&gt;blog_id ) {\n\n\t\t\tswitch_to_blog( $blog-&gt;blog_id );\n\n\t\t\t$user_roles = get_option( $wpdb-&gt;prefix . &#039;user_roles&#039; );\n\n\t\t\tif( ! empty( $main_user_roles&#091;$role] ) ) {\n\n\t\t\t\t$user_roles&#091;$role] = $main_user_roles&#091;$role];\n\n\t\t\t\tupdate_option( $wpdb-&gt;prefix . &#039;user_roles&#039;, $user_roles );\n\t\t\t}\n\t\t\trestore_current_blog();\n\t\t}\n\t}\n}\n\nregister_activation_hook( __FILE__, &#039;wk_add_new_roles&#039; );<\/pre>\n\n\n\n<p>The results are shown here, and they will also be posted on your subsite.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"256\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png\" alt=\"user_role\" class=\"wp-image-375610\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-300x64.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-250x53.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-768x164.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role.png 1290w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Add a user globally when a new user is created.<\/h3>\n<\/div><\/div>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Set new user to all subsites.\n *\n * @param int $user_id\n *\n * @param object $userdata\n *\n * @return void\n *\/\nfunction wk_add_new_user( $user_id, $userdata ) {\n\n\t$blogs = get_sites();\n\n\t$user = get_userdata( $user_id );\n\n\t$status = false;\n\n\tif( in_array( &#039;wk_custom_role&#039;, $user-&gt;roles ) ) {\n\t\t$status = true;\n\t} elseif( isset( $_POST&#091;&#039;role&#039;] ) &amp;&amp; $_POST&#091;&#039;role&#039;] === &#039;wk_custom_role&#039; ) {\n\t\t$status = true;\n\t}\n\n\tif( $blogs &amp;&amp; $status ) {\n\t\tforeach ( $blogs as $key =&gt; $blog ) {\n\t\t\tadd_user_to_blog( $blog-&gt;blog_id, $user_id, &#039;wk_custom_role&#039; );\n\t\t}\n\t}\n}\nadd_action( &#039;user_register&#039;, &#039;wk_add_new_user&#039; ,10 ,2 ); \/\/ For add new user\nadd_action( &#039;profile_update&#039;, &#039;wk_add_new_user&#039; ,10 ,2 ); \/\/ For update user<\/pre>\n\n\n\n<p>Using this user will be added to all your subsites as well.<\/p>\n\n\n\n<p>This is all about creating user and user custom roles for all your subsite. <\/p>\n\n\n\n<p>Hope you like this article, Will meet you again with a new topic :). Also, visit our quality <a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\">WooCommerce extensions<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Support<\/h3>\n\n\n\n<p>For any kind of technical assistance, please&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">raise a ticket<\/a>&nbsp;or send us a mail at&nbsp;<strong>support@webkul.com<\/strong><\/p>\n\n\n\n<p>You may also check out our exclusive&nbsp;<a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\">WooCommerce Addons<\/a>&nbsp;and can also explore our&nbsp;<a href=\"https:\/\/webkul.com\/woocommerce-development\/\">WooCommerce Development Services.<\/a><\/p>\n\n\n\n<p>Thanks for Your Time! Have a Good Day!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites from a single WordPress dashboard. This lets you easily make changes and keep all of your websites updated from one place. WordPress has six predefined roles: Super Admin, Administrator, Editor, Author, Contributor, and Subscriber. Each <a href=\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":222,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1260],"tags":[],"class_list":["post-372778","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a custom role and user globally for WordPress Multisite. - Webkul Blog<\/title>\n<meta name=\"description\" content=\"WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a custom role and user globally for WordPress Multisite. - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-05T08:44:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-03T09:01:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png\" \/>\n<meta name=\"author\" content=\"Akhilesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Akhilesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\"},\"author\":{\"name\":\"Akhilesh Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704\"},\"headline\":\"How to create a custom role and user globally for WordPress Multisite.\",\"datePublished\":\"2023-04-05T08:44:42+00:00\",\"dateModified\":\"2024-07-03T09:01:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\"},\"wordCount\":318,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png\",\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\",\"name\":\"How to create a custom role and user globally for WordPress Multisite. - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png\",\"datePublished\":\"2023-04-05T08:44:42+00:00\",\"dateModified\":\"2024-07-03T09:01:12+00:00\",\"description\":\"WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role.png\",\"width\":1290,\"height\":275,\"caption\":\"user_role\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a custom role and user globally for WordPress Multisite.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704\",\"name\":\"Akhilesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Akhilesh Kumar\"},\"description\":\"Akhilesh Kumar is a seasoned professional with 5 years of expertise in WordPress WooCommerce module development, marketplace development, and API development. With a strong foundation in e-commerce technologies, Akhilesh excels in crafting robust solutions to meet diverse business needs, driving success in online retail venture\",\"url\":\"https:\/\/webkul.com\/blog\/author\/akhileshkumar-oc765\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a custom role and user globally for WordPress Multisite. - Webkul Blog","description":"WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/","og_locale":"en_US","og_type":"article","og_title":"How to create a custom role and user globally for WordPress Multisite. - Webkul Blog","og_description":"WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites.","og_url":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-04-05T08:44:42+00:00","article_modified_time":"2024-07-03T09:01:12+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png","type":"","width":"","height":""}],"author":"Akhilesh Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Akhilesh Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/"},"author":{"name":"Akhilesh Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704"},"headline":"How to create a custom role and user globally for WordPress Multisite.","datePublished":"2023-04-05T08:44:42+00:00","dateModified":"2024-07-03T09:01:12+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/"},"wordCount":318,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png","articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/","url":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/","name":"How to create a custom role and user globally for WordPress Multisite. - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role-1200x256.png","datePublished":"2023-04-05T08:44:42+00:00","dateModified":"2024-07-03T09:01:12+00:00","description":"WordPress Multisite is a type of WordPress installation that allows you to create and manage a network of multiple websites.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/user_role.png","width":1290,"height":275,"caption":"user_role"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-role-and-user-globally-for-wordpress-multisite\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a custom role and user globally for WordPress Multisite."}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704","name":"Akhilesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Akhilesh Kumar"},"description":"Akhilesh Kumar is a seasoned professional with 5 years of expertise in WordPress WooCommerce module development, marketplace development, and API development. With a strong foundation in e-commerce technologies, Akhilesh excels in crafting robust solutions to meet diverse business needs, driving success in online retail venture","url":"https:\/\/webkul.com\/blog\/author\/akhileshkumar-oc765\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/372778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/222"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=372778"}],"version-history":[{"count":22,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/372778\/revisions"}],"predecessor-version":[{"id":450830,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/372778\/revisions\/450830"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=372778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=372778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=372778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}