Editing Help Section
Do NOT edit core files! You can add to or override the default text by using a filter. Try taking a look at http://justintadlock.com/archives/2011/06/02/adding-contextual-help-to-plugin-and-theme-admin-pages
Do NOT edit core files! You can add to or override the default text by using a filter. Try taking a look at http://justintadlock.com/archives/2011/06/02/adding-contextual-help-to-plugin-and-theme-admin-pages
When you register your post type you can show/hide the UI in the arguments. I would approach it this way: $allowed = current_user_can(‘administrator’) ? true : false; $args = array( //other args ‘show_ui’ => $allowed ); //register_post_type() function; This will maintain the custom post type architecture while hiding the UI for those who are not … Read more
Ok this appears to have been solved by turning on short open tag and zlib output compression in the php settings of WAMP
well it looks like I worked this out. On the actual admin page I need to declare my $errors array as global as well global $errors; I guess wordpress must somehow box the admin page into a function and so the $errors array was not referencing the global var.
Hmm – if they have no role, it may be that they are coming in through some other way and adding that action will not help. What plugins do you have active ? also are you sharing a wp user database with another system?
I have Multi-Site enabled. That means I must first log in as a super admin, then go to “super admin” > “themes” option in left menu (inside wp-admin), and then enable it there first.
Don’t know if this could help you, I used this to manage a image field from a meta-box in the post admin page : add_action( ‘load-post.php’, ‘ImageOnSlider_scripts’ ); add_action( ‘load-post-new.php’, ‘ImageOnSlider_scripts’ ); function ImageOnSlider_scripts() { wp_enqueue_script(‘media-upload’); wp_enqueue_script(‘thickbox’); wp_register_script(‘my-upload’, WP_THEME_URL.’/js/name_of_script.js’, array(‘jquery’,’media-upload’,’thickbox’)); wp_enqueue_script(‘my-upload’); wp_enqueue_style(‘thickbox’); } and the JS : jQuery(document).ready(function() { jQuery(‘#upload_image_button’).click(function() { formfield = jQuery(‘#input-ImageOnSlider’).attr(‘name’); tb_show(”, … Read more
Put the following line before using the function. require_once( ABSPATH . ‘/wp-admin/includes/image.php’ );
Why don’t you set the Contributor role for your site users. Then when they write a new post it will have to be reviewed by an Administrator before it gets published. Have a look at this link also -> http://codex.wordpress.org/Roles_and_Capabilities
I edited default-widgets.php – function wp_widget_rss_output () but it’s still not showing any changes. There is NO NEED TO MODIFY CORE FILES!!!! Especially with dashboard widgets where a very extensible API as been provided by WordPress. PS: I’m using WPMUDEV Dashboard Feeds plugin. This plugin changes the widget_options so that I can show my own … Read more