How to allow suscriber to access specific pages in dashboard? - wordpress

I want to create some pages in admin dashboard which are also shown to subscribers. Normally subscriber can see dashboard page and profile only. I want to create a page called Orders and show to subscribers. But not other pages.
How can I do ?
Thanks in Advance.
**I POSTED HERE BECAUSE FOUND NO ANSWER IN WORDPRESS EXCHANGE**

You can use add_menu_page() and add_submenu_page() to create your custom menu.
You can set the $capability parameter to read to make them available to subscribers.
From WordPress codex:
https://developer.wordpress.org/reference/functions/add_menu_page
https://developer.wordpress.org/reference/functions/add_submenu_page

Related

Wordpress registered users adding content or products

I would like to use Wordpress in order to create a (somewhat) e-shop where users can register and make their offer(adding text and an image). The idea is that users will be able to 'post' offers. Are there any plugins that give such control to the user? Thank you in advance!
you may try below plugins ...
http://wordpress.org/plugins/another-wordpress-classifieds-plugin/
http://wordpress.org/plugins/classyfrieds/

How To Add Custom Field In woo commerce product listing admin page in Wordpress

I am very much new to wordpress and need help. Well I need to add a custom field to woocommerce product listing page in admin and make it work.
So where do I have to make changes in code or in admin section.I need some suggestions on how to make it work.
Thanks in advance
if I'm understanding you right you want to add new fields to your woocommerce products, and you want those fields to show up in the admin panel. I am working on this right now myself and I have found a few good resources.
First of all, although I can't find any documentation on them yet directly in the woocommerce API docs, there are two hooks for extending the admin panel.
woocommerce_product_write_panel_tabs - this allows you to insert a new tab within the admin panel. from browsing the source of various free woocommerce plugins that do this it appears that the tab format should be <li>Tab Name</li>.
woocommerce_product_write_panel - this is where the insertion of your custom panel contents would go, placed within a <div id="#tab_name"></div>
These are the two hooks that I have had a great deal of difficulty locating. They allow you to hook into the actual woocommerce admin area, otherwise custom fields you might add will end up in a separate panel.
For all the details on actually adding the custom fields themselves and hooking them up to the front-end, I suggest this tutorial here, which covers the basic concepts involved in adding a new meta-data field and hooking it into the product display (in this case the single-product detail view, it sounds like you want to modify them in the list view but this will show you the basic principles).
http://www.xatik.com/2013/02/06/add-custom-form-woocommerce-product/
Note: that tutorial doesn't use the woocommerce admin panel but creates its own panel, the instructions I gave above, plus this tutorial, should get you just about anywhere you need to go.

Wordpress - Hide a page when a user try to navigate to it writing the URL

Example: I created a custom post type "movie". I added links of some movie posts in the nav menu, and it's ok if a user navigates to a post writing in the browser the URL (like www.site.com/movie/apocalypse-now) but I don't want that the user navigates to the page www.site.com/movie (that lists all the movies).
Is there a way to hide that page?
Why not register has_archive to false in your register_post_type() function?
Would be a solution if you want to disable the post type archive.
You need Advanced Access Manager if you're willing to use plugin.
Filter Admin Menu
Filter Admin Panel
Filter Dashboard Widgets
Filter Metaboxes
Manage Comments
Manage Capabilities (Create, Delete)
Manage User Roles (Create, Edit, Delete)
Manage Access to your Posts, Pages or even Custom Post Types
Give possibility to promote Users
Manage Admin Menu Order
Manage other Administrators
Exclude Front-end Pages from Navigation
You can try to create an rewrite rule pointing to your homepage or e.g. the first movie.
Here is exactly the thing you like to do, just the opposite: ;)
http://www.ballyhooblog.com/custom-post-types-wordpress-30-with-template-archives/

Wordpress 3.5.1: restrict default search widget to search on specific categories

I am using WP Subdomains plugin which is working perfect and I can restrict posts to show where I want by the sub-domain slug. But if I search for word using wordpress default search widget it shows all posts regardless of the sub-domain.
I don't know how can I restrict search to filter posts and show only with respect to the sub-domain and in case of upgrade how can I stop to override my newly created search widget.
Search Everything plugin is having a area where you can exclude categories you want. but I dont know what about subdomains and WP Subdomains. Please to feedback if you managed to use the two plugins at the same time.
To restrict the default search of wordpress you have to edit your the page where the searchform is sending the typed text. Searchform is just sending informations, what you have to check is the destination file.
Check this link : http://codex.wordpress.org/Creating_a_Search_Page
Okay I did it with my custom search page.

Adding custom user options to wordpress

I am trying to add a custom field to the wordpress user profile page. For instance if I wanted to add a field where the user could put in their Linkedin, or Twitter user name, then use that value whenever the user posts a comment, or if the user is an author, to add that value in their posts.
I have a forum (bbpress) integrated so I would also like to use this value to customize the users avatar in the forums.
I am looking at the way Wordpress uses Gravatar. I would like to do something similar. However, I'm not sure where to start. I've written a couple of shortcode plugins in the past, but nothing this complicated.
Anyone have any ideas on where I should begin on this?
look at this post and this

Resources