Editor Widget Role

This needs to be implemented at the widget code level for which the code in the question you start with is not a good match. The easiest way might be to decouple the widget content editing and the widget placement. You can set up a specific page in which it is possible to manage the … Read more

Subscriber role – blank page

I found an answer. It is because the WooCommerce plugin which prevents users without edit_posts capability to display dashboard. Well, I think they should let you know that they are making this kind of change in WordPress default settings. Because you are not able to turn it off in WooCommerce settings.

Custom Post Type only display items created by user

Instead of coming up with this functionality myself and re-inventing the wheel I’m using the built-in functionality that makes a post ‘private’. By using this I’ve had to force all posts to be private, I’ve done so using the wp_insert_post_data filter: add_filter(‘wp_insert_post_data’, array($this, ‘post_data_save’), 10, 2); And my method: public function post_data_save($post){ if($post[‘post_type’] == ‘my_custom_post_type’){ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)