Skip to content

Tag: wordpress

WordPress – Logout redirection based on role

I’m trying to determine how I can redirect users upon logout, to a URL defined by their role. Simply put, I want to redirect admins (as well as editors) that logout to a different URL, than subscribers / privileged users. I’m using the following code to redirect users at logout right now, but this…

WordPress plugin install: Could not create directory

I’m using WordPress on centos 6. I try to install a plugin. But I got this error: Installing Plugin: bbPress 2.5.9 Downloading install package from https://downloads.wordpress.org/plugin/bbpress.2.5.9.zip… Unpacking the package… Could not create directory. How can I resolve this? P/S: I run this command…

WordPress: how to hide toolbar in post editor?

I have a Custom Post Type (Products) in my WordPress web site. This is a WooCommerce Product, if it’s necessary to know. I need to hide toolbar (1) into wp-editor on Add Product page. Also I need to hide “Add media” button (2) and “Visual/Text” tabs (3). How do I hide them? Maybe…