• Home
  • Computer
    • MS Word
    • MS Excel
    • MS Powerpnt
    • MS Access
    • Photoshop
    • Corel Draw
    • Internet
  • School
    • Prog & IT (Commerce)
  • Programming
    • C++
    • HTML & CSS
    • JS
    • PHP
    • Codeigniter
    • WordPress
    • Shopify
    • React JS
  • Online Exams
    • Efficiency Test
Logo
React JS
How to add Pagination in Next Js
JS
Closures in JavaScript
JS
Understanding Generator Functions
JS
A Deep Dive into JavaScript’s Slice and Splice
Thursday, September 25, 2025
  • Home
  • Computer
  • School
  • Programming
  • Online Exams
Login/Register
Logo
  • Home
  • Computer
    • MS Word
    • MS Excel
    • MS Powerpnt
    • MS Access
    • Photoshop
    • Corel Draw
    • Internet
  • School
    • Prog & IT (Commerce)
  • Programming
    • C++
    • HTML & CSS
    • JS
    • PHP
    • Codeigniter
    • WordPress
    • Shopify
    • React JS
  • Online Exams
    • Efficiency Test
Logo
  • Home
  • Computer
    • MS Word
    • MS Excel
    • MS Powerpnt
    • MS Access
    • Photoshop
    • Corel Draw
    • Internet
  • School
    • Prog & IT (Commerce)
  • Programming
    • C++
    • HTML & CSS
    • JS
    • PHP
    • Codeigniter
    • WordPress
    • Shopify
    • React JS
  • Online Exams
    • Efficiency Test
React JS
How to add Pagination in Next Js
JS
Closures in JavaScript
JS
Understanding Generator Functions
JS
A Deep Dive into JavaScript’s Slice and Splice

add and remove permission/ add user capability to access specific plugin or data by user role

July 22, 2020
|
No Comments
|
Wordpress

copy or paste the below code into functions.php file

  add_action( 'init', 'user_role_permision');
    function user_role_permision() {
     
        $role = get_role('dc_vendor');
       //$role->add_cap("import");
      // $role->remove_cap("manage_woocommerce");
    }
Previous Post create pdf file of any html page or html code using php
Next Post Add custom tabs on product page in shopify shopify custom tabs

0 Comments

Leave a Comment Cancel reply

FOLLOW US

FACEBOOK

TWITTER

GOOGLE PLUS

PINTEREST

FLICKR

INSTAGRAM

Popular Posts

Custom popup using html css & js

Custom popup using html css & js

JS
June 13, 2021
How to insert data in mysql database in hindi

How to insert data in mysql database in hindi

PHP
September 16, 2018
woocommerce “add to cart” button with display variation in dropdown & product quantity on single-product in woocommerce

woocommerce “add to cart” button with display variation in dropdown & product quantity on single-product in woocommerce

Wordpress
September 17, 2019

Advertisement

Archivies

  • October 2024 (1)
  • September 2023 (1)
  • August 2023 (8)
  • July 2023 (1)
  • July 2022 (1)
  • June 2021 (4)
  • May 2021 (2)
  • February 2021 (2)
  • July 2020 (1)
  • June 2020 (1)
  • March 2020 (1)
  • February 2020 (5)
  • October 2019 (1)
  • September 2019 (6)
  • September 2018 (2)
  • August 2018 (4)
  • July 2018 (4)

RECENTPOPULARTAG

RECENT POSTS

get custom post by acf custom field value

get custom post by acf custom field value

Wordpress
July 30, 2022
How to add scripts after scroll

How to add scripts after scroll

JS
June 27, 2021
How to create a custom elementor widget

How to create a custom elementor widget

PHP
June 27, 2021

On kkduniya Blog, You get all kinds of information such as Computer Information, School Course, Programming, Online Exams etc.

Address

Jhotwara, Jaipur
kkduniya@gmail.com
+91 9782137083
+91 9782137083

RECENT POSTS

Add an Admin User in WordPress using function.php

Add an Admin User in WordPress using function.php

October 25, 2019
How to add pagination in wordpress

How to add pagination in wordpress

July 14, 2018

add and remove permission/ add user capability to access specific plugin or data by user role

July 22, 2020
How to add scripts after scroll

How to add scripts after scroll

June 27, 2021

Instagram

Created by kkduniya 2018. All Rights Reserved

Login access is disabled

Don't have an account? Sign Up Already have an account? Login