Any recommendation what is need for sub-site user in admin?

Hi again,

i need some recommendation for my multi-subsite store i am making.

i have made ready categories for all users and i want users to have possibilities to change themes also.

So my question what can disable in admin so it is very easy for users to handel the admin and what tis not needed at all for them.

if any one could share with me i will appreciate it allot.

warm regards Erik

  • erikjohansson

    yes i did add the twaeking thing for easy blogging but is not showing manage orders links. any ideas how to add that to the code?

    function add_products_easy ($items) {
    
    	$items[] = array (
    		'check_callback' => false, // Custom callback function for access checking.
    		'capability' => 'edit_posts', // User capability needed to access this page. Can be set to "false".
    		'url' => 'edit.php?post_type=product', // The path to your page
    		'icon' => 'http://fondelifair.com/wp-content/plugins/easyblogging/themes/stripes_orange/assets/icons/theme_icons/new-post.png', // Full URL to your icon
    		'title' => __('Products', 'wdeb'), // Your link text
    		'help' => __('My Products', 'wdeb'), // A short help string for your link
    	);
    	return $items;
    }
    add_filter('wdeb_menu_items', 'add_products_easy');
  • erikjohansson

    aha ok,

    i am not a coder so should i add this code

    <?php
    function add_products_easy ($items) {
    
    	$items[] = array (
    		'check_callback' => false, // Custom callback function for access checking.
    		'capability' => 'edit_posts', // User capability needed to access this page. Can be set to "false".
    		'url' => 'edit.php?post_type=product', // The path to your page
    		'icon' => 'http://mysite.com/wp-content/plugins/easyblogging/themes/stripes_orange/assets/icons/theme_icons/new-post.png', // Full URL to your icon
    		'title' => __('Products', 'wdeb'), // Your link text
    		'help' => __('My Products', 'wdeb'), // A short help string for your link
    	);
    	return $items;
    }
    add_filter('wdeb_menu_items', 'add_products_easy');
    ?>

    to a php file and upload to mu_plugin folder, and can i name the file anything?

  • erikjohansson

    Phil it sounds easy when u explain, so i should duplicate the whole code and then just change url like this:

    <?php
    function add_products_easy ($items) {
    
    	$items[] = array (
    		'check_callback' => false, // Custom callback function for access checking.
    		'capability' => 'edit_posts', // User capability needed to access this page. Can be set to "false".
    		'url' => 'edit.php?post_type=product', // The path to your page
    		'icon' => 'http://mysite.com/wp-content/plugins/easyblogging/themes/stripes_orange/assets/icons/theme_icons/new-post.png', // Full URL to your icon
    		'title' => __('Products', 'wdeb'), // Your link text
    		'help' => __('My Products', 'wdeb'), // A short help string for your link
    	);
    	return $items;
    }
    add_filter('wdeb_menu_items', 'add_products_easy');
    ?>
    
    <?php /*?>///////////////new code below /////////////////////////<?php */?>
    
    <?php
    function add_products_easy ($items) {
    
    	$items[] = array (
    		'check_callback' => false, // Custom callback function for access checking.
    		'capability' => 'edit_posts', // User capability needed to access this page. Can be set to "false".
    		'url' => 'here i will ad the url', // The path to your page
    		'icon' => 'http://mysite.com/wp-content/plugins/easyblogging/themes/stripes_orange/assets/icons/theme_icons/new-post.png', // Full URL to your icon
    		'title' => __('Products', 'wdeb'), // Your link text
    		'help' => __('My Products', 'wdeb'), // A short help string for your link
    	);
    	return $items;
    }
    add_filter('wdeb_menu_items', 'add_products_easy');
    ?>
  • Philip John

    Sorry, no, I didn't explain very well. You only need to copy lines 4-18 like so;

    <?php
    function add_products_easy ($items) {
    
    	$items[] = array (
    		'check_callback' => false, // Custom callback function for access checking.
    		'capability' => 'edit_posts', // User capability needed to access this page. Can be set to "false".
    		'url' => 'edit.php?post_type=product', // The path to your page
    		'icon' => 'http://mysite.com/wp-content/plugins/easyblogging/themes/stripes_orange/assets/icons/theme_icons/new-post.png', // Full URL to your icon
    		'title' => __('Products', 'wdeb'), // Your link text
    		'help' => __('My Products', 'wdeb'), // A short help string for your link
    	);
    	$items[] = array (
    		'check_callback' => false, // Custom callback function for access checking.
    		'capability' => 'edit_posts', // User capability needed to access this page. Can be set to "false".
    		'url' => 'here i will ad the url', // The path to your page
    		'icon' => 'http://mysite.com/wp-content/plugins/easyblogging/themes/stripes_orange/assets/icons/theme_icons/new-post.png', // Full URL to your icon
    		'title' => __('here i will ad the title', 'wdeb'), // Your link text
    		'help' => __('here i will ad the help text', 'wdeb'), // A short help string for your link
    	);
    	return $items;
    }
    add_filter('wdeb_menu_items', 'add_products_easy');
    ?>

    Also note you need to edit the 'title' and 'help' parts too - I've added placeholder text so you can see that.

    Phil

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.