How to remove screen options and help links in the admin area?
There are several plugins that can do that: Adminimize, you can remove it even on role base Admin Trim Menu
There are several plugins that can do that: Adminimize, you can remove it even on role base Admin Trim Menu
Option 1 As the article linked by @MikeMadern suggests: in your web host control panel, go to PHPMyAdmin select the table wp_comments select Export, configure the format further down in the same screen, select the Save as file and Go Option 2 Or, as the same article suggests, just use a plugin: Export comments Pulls … Read more
try to read this useful article: http://digwp.com/2009/12/redirect-mobile-users-to-mobile-theme/
Either of these 3 will help you: //Before getting the comments, on the WP_Comment_Query object for each comment add_action(‘pre_get_comments’, ‘wpse56652_filt_comm’); //Applied on the comments SQL Query, you can modify the ‘Where’ part of the query add_filter(‘comments_clauses’, ‘wpse56652_filt_comm’); //After the comments are fetched, you can modify the comments array add_filter(‘the_comments’, ‘wpse56652_filt_comm’); function wpse56652_filt_comm($param) { //access the … Read more
You can set (in terms of force) a default color within functions.php like this: add_filter( ‘get_user_option_admin_color’, ‘update_user_option_admin_color’, 5 ); function update_user_option_admin_color( $color_scheme ) { $color_scheme=”light”; return $color_scheme; } Update: The following color schemes are available per default at WP 3.8 fresh light blue coffee ectoplasm midnight ocean sunrise Bonus (found on wpmudev): Disable the Admin … Read more
Add this to your functions.php: function my_footer_shh() { remove_filter( ‘update_footer’, ‘core_update_footer’ ); } add_action( ‘admin_menu’, ‘my_footer_shh’ ); or, if you’d like to hide it from everyone except admins: function my_footer_shh() { if ( ! current_user_can(‘manage_options’) ) { // ‘update_core’ may be more appropriate remove_filter( ‘update_footer’, ‘core_update_footer’ ); } } add_action( ‘admin_menu’, ‘my_footer_shh’ );
Plugin It’s basically just a user capability check, followed by a redirect in an exit call. It then redirects to the site the request came from. <?php ! defined( ‘ABSPATH’ ) AND exit; /* Plugin Name: (#66093) »kaiser« Deny Admin-UI access for certain roles */ function wpse66093_no_admin_access() { // Do not run if the user … Read more
Add this as well: add_action(‘wp_ajax_nopriv_my_action’, ‘my_action_callback’);. Notice the nopriv. It will solve your problem!
https://github.com/scribu/wp-scb-framework/wiki This guy has built what you are looking for I believe. He’s a core-contributor and his code is top notch. And the project is open on github, so even better right?
Easy enough, decided to just do the redirect option. I used the wp_login action hook. You could also probably use this for redirecting your users to ANY page on your website. You can also check user capabilities from the $user Object passed in as a function parameter if you want to send different user levels … Read more