creating different edit screens for different roles

Solved it for different edit pages for different roles. In my method resposible for rendering the field I have: if ( count( array_intersect( $allowed_editors, $user->roles ) ) < 1 ) $readonly = ‘readonly’; Which I later use to either set the input field as readonly or add/remove classes before rendering it. Still working for the … Read more

My code for creating an admin option doesn’t work

Make Sure Your Functions, Slug and Callback Functions are Unique(Means Different from any other plugin or default WordPress). Also to save options use Settings API http://codex.wordpress.org/Function_Reference/register_setting <?php add_action(‘admin_menu’, ‘add_unique_custom_options’); function add_unique_custom_options() { add_options_page(‘Global Custom Options’, ‘Global Custom Options’, ‘manage_options’, ‘unique-functions’,’unique_custom_options’); } function unique_custom_options() { ?> <div class=”wrap”> <h2>Global Custom Options</h2> <form method=”post” action=”options.php”> <?php wp_nonce_field(‘update-options’) … Read more

Which plugin could minify the Dashboard? [closed]

According to the Author of W3 Total Cache Better WordPress Minify and W3 Total Cache are Not compatible with each-other due to the fact that they are rpetty much based on the same code. OK, after about 20 mins of searching and trying, the solution is Pretty easy. Of course it’s a “solution” only if … Read more

WordPress version quick check?

I’m not the only one with this problem. The simplest way I feel is the site wide readme.html method or the wp-admin/about.php method. This wordpress post has four ways to check and this question on stackoverflow had good info. I looked and looked but couldn’t see it in the At a Glance box until later … Read more

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