Permalinks and page store

When you enable permalinks in WordPress, it creates an htaccess file in whatever directory it’s located in. Since WordPress is installed in the root directory, there will be an .htaccess file there that enabled permalinks. It is possible that the rewrite rules that WordPress is producing are interfering with your install of ecommerce. If ecommerce … Read more

How to hide plugin options for editors via functions.php

This should be easiest way, just add the line to wp-config.php, this will disable plugin and theme editor, both. define(‘DISALLOW_FILE_EDIT’,true); If you want to add codes into theme’s function, the code should work for you. function ra_block_tp_edit( $caps, $cap ) { if($cap == ‘edit_plugins’ ) $caps[] = ‘do_not_allow’; return $caps; } add_filter( ‘map_meta_cap’, ‘ra_block_tp_edit’, 10, … Read more

insufficient permissions; coding an action for plugin governed by custom capability

You should not use the page parameter in an admin url unless you are going to go to an options page because a check for the ‘manage_options’ capability is the default permissions check. The goal of the ‘Delete Cache’ link is to run an action, then redirect to the current page/post; it is not to … Read more

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