POMO_Reader->substr() call endless loop?
I was able to fix the problem by switching the xdebug extension. I had a vc9-nts version installed and switched to vc6-nts which solved the issue.
I was able to fix the problem by switching the xdebug extension. I had a vc9-nts version installed and switched to vc6-nts which solved the issue.
Don’t know about more extensive solutions but this can be accomplished with tiny plugin which will check IP (in $_SERVER) at some stage of load and die on match. Had you looked through official repository? There is IP tag.
Have you disabled all plug-ins to rule out a jquery conflict?. Do you have any custom scripts that you are registering in your theme? If so are you using: if( !is_admin()){ to ensure it’s not loading on the back-end?
You can add an interal link quite easily, it’s the same approach you use for adding custom items, you simply exclude a callback function and set the menu slug to the applicable URL, here’s an example. add_action( ‘admin_menu’, ‘add_user_type_link’ ); function add_user_type_link() { add_submenu_page( ‘users.php’, ‘Customers’, ‘Customers’, ‘edit_users’, ‘users.php?role=customers’ ); } Adjust the code as … Read more
I believe your best bet is to create a custom post type for the certain posts you want editable by multiple authors. When you register your post assign a capability type (#WIKI# in this example) and then add the ‘edit_others_#WIKI#s’ to the author role.
Not sure about the Membership plug-in bit, but admin_init will be your best bet. I assume that you don’t actually what to hook into the admin header though – this would be admin_head or admin_head-(plugin_page) – but you cannot redirect after these hooks (headers already sent).
You should be able to add help tabs with add_help_tab(). You’ll need to filter which page you add it to based on the data returned by get_current_screen(), but that’s simple.
How about the Revisionary plugin? It allows you to set pages as “save as pending” after making changes to an existing published page, so that your changes are saved as a draft but not yet pushed live. You can also use it to help customize user roles – so if you want to allow someone … Read more
add_action(‘pre_user_query’,’yoursite_pre_user_query’); function yoursite_pre_user_query($user_search) { global $current_user; $username = $current_user->user_login; if ($username == ‘<USERNAME OF OTHER ADMIN>’) { global $wpdb; $user_search->query_where = str_replace(‘WHERE 1=1’, “WHERE 1=1 AND {$wpdb->users}.user_login != ‘<YOUR USERNAME>'”,$user_search->query_where); } } Replace text with the actual usernames of the users involved. You can also modify this to hide one admin from all other users … Read more
To show content only for users with role ‘agent’, try to use this snippet: <?php if ( ( $user = wp_get_current_user() ) && in_array( ‘agent’, $user->roles ) ) { ?> ///here the content <?php } ?> If you want to block users by ID, check the following snippet: <?php if ( ( $user = wp_get_current_user() … Read more