how i can hide some category from author admin panel?
Try the restrict categories plugin. It lets you configure which categories are visible in the WordPress admin, based on the user role or the individual user.
Try the restrict categories plugin. It lets you configure which categories are visible in the WordPress admin, based on the user role or the individual user.
You can show or hide something based on a user’s role with the current_user_can() function. For the Administrator role you would check if current_user_can( ‘administrator’ ). Here’s a quick and dirty example of hiding a nav menu item by first checking if the title matches a particular page, and then checking if the current user … Read more
First of all, thanks to Ian Stewart for the codes here- In functions.php paste the following codes: // Template for comments and pingbacks. if ( ! function_exists( ‘my_comment’ ) ) : function my_comment( $comment, $args, $depth ) { $GLOBALS[‘comment’] = $comment; switch ( $comment->comment_type ) : case ‘pingback’ : case ‘trackback’ : // Display trackbacks … Read more
It appears your sites are not under the same network, and you have network 1 and network 3. Normally this would never happen on an average multisite unless plugins are installed that can change this. Yes 1 WordPress multisite instance can run multiple networks of blogs, you have accidentally stumbled onto this feature, wordpress.com being … Read more
By default, options are auto-loaded. So all options with autoload: yes will be fetched very early. Your option will not need an additional query. Also, database access is often faster and more reliable than file access. The options table is also usually included in database backups, and it can be exported in multiple formats. So … Read more
Here I assume your json is an array of object where properties are named like wp_insert_post arguments: ‘post_title’, ‘post_content’ and so on. function process_ajax() { if ( ! isset($_POST[‘nonce’]) || ! wp_verify_nonce($_POST[‘nonce’], ‘mynonce’) ) die(‘error on checking nonce’); if ( ! isset($_POST[‘filepath’]) die(‘no file given’); if ( ! file_exists($_POST[‘filepath’]) ) die(‘invalid file given’); $posts = … Read more
When you move a WordPress install, you need to also edit two fields in the database. Run this against your database in order to find the values that need to be edited: SELECT * FROM `wp_options` WHERE option_name IN(‘siteurl’, ‘home’); If database access is not an option, another way to do this is by editing … Read more
Maybe you can upload wp-login.php again or change your Admin password with sql query: UPDATE ‘wp_users’ SET ‘user_pass’ = MD5(‘PASSWORD’) WHERE ‘user_login’ =’admin’ LIMIT 1;
comment_moderation_recipients filter is not in wordpress 3.6. check link : http://wpseek.com/wp_notify_moderator/ you will find following line. WORDPRESS 3.7-ALPHA-25157
You have to use $_REQUEST instead of $_GET, because when an user saves a post the POST request will be send to the server. It means that there is no $_GET[‘post’] argument and your meta boxes won’t be registered. And if they are not registered, then nothing will be saved. // Only shows for the … Read more