• 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
Wednesday, November 12, 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

How to remove google fonts from WordPress theme (X & Pro themes)

How to remove google fonts from WordPress theme (X & Pro themes)

Wordpress
August 5, 2018
How to get url segment / address bar data from js and php

How to get url segment / address bar data from js and php

JS
February 16, 2020

Set php variable value in localstorage & get localstorage value into into a php variable?

PHP
September 18, 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

How to fix ajax url not defined error in wordpress

How to fix ajax url not defined error in wordpress

February 8, 2020

Ajax file upload in WordPress & php

September 21, 2019
12th Commerce Computer Syllabus and Model Paper

12th Commerce Computer Syllabus and Model Paper

July 6, 2018
How to convert a numeric number into English words in Excel

How to convert a numeric number into English words in Excel

August 5, 2018

Instagram

Created by kkduniya 2018. All Rights Reserved

Login access is disabled

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