Error thrown. Cannot create references to/from string offsets
Error thrown. Cannot create references to/from string offsets
Error thrown. Cannot create references to/from string offsets
The old user registration form is not compatible with the new one due to the new multi site user roles introduced. While it does involve an extra step the new users profile can be edited once the user is created. There are also plugins available that extend the add new user options. Gravity Forms has … Read more
Checkout the HTML for a WP meta-box : <div id=”my_div” class=”postbox “> <div class=”handlediv” title=”Click to toggle.”><br></div> <h3 class=”hndle”><span>title</span></h3> <div class=”inside”> … </div> </div> If you follow that structure (and CSS classes) in your custom meta-box, the toggle will work.
Sorry, but no. 🙂 You can’t simply use the html-button in the wysiwyg-editor. Both are different programms and have nothing in common except for their location. You’d have to unregister the current buttons, write code for a new one (that fits your likings) and then add this one. You’ll find hundreds of tutorials for adding … Read more
You can use a captcha plugin that requires users to type a short phrase or random letters in order to register on your site. An example of one of these plugins is the WP-reCAPTCHA, found at: http://wordpress.org/extend/plugins/wp-recaptcha/ Or you can use a plugin such as CIMY User Extra Fields to add fields to a user … Read more
Afaik, there’s no straight forward way for this. You’d have to extend the WP_List_Table and add an extra column. This would be an example function: function wpse_get_comments_by_user( $user_ID ) { global $wpdb; $rows = $wpdb->query( $wpdb->prepare( ” SELECT * FROM %s WHERE user_id = %d ” ,$wpdb->comments ,(int) $user_ID ) ); return $rows; } The … Read more
[Update] Answer rewritten, based on this other Q&A. To achieve this: Use this code: add_filter( ‘custom_menu_order’, ‘wpse_48933_submenu_order’ ); function wpse_48933_submenu_order( $menu_ord ) { global $submenu; // Enable the next line to inspect the $submenu values // echo ‘<pre>’.print_r($submenu,true).'</pre>’; $arr = array(); $arr[] = $submenu[‘edit.php?post_type=page’][10]; $arr[] = $submenu[‘edit.php?post_type=page’][5]; $submenu[‘edit.php?post_type=page’] = $arr; return $menu_ord; }
grrr.really annoying, 2hrs and then i found it myself $args = array( ‘echo’ => 1, ‘selected’ => $home_galleryselect, ‘name’ => ‘theme_option[home_galleryselect]’); wp_dropdown_pages($args);
I found that there is a filter, manage_posts_columns (and a related manage_pages_columns), that lets you modify the column headers on the “All Posts” admin screen. Using this filter is pretty simple, as the filtering function takes in an associative array with the short name of the column as a key and the heading as the … Read more
You can add a new page using add_(sub)menu_page();. WordPress is pretty kind in this case and offers tons of hooks, filters and higher level API functions that help you going around this. Let’s just use add_users_page(); and hook into admin_menu. Example plugin It adds an admin page that has the user_login as slug. Simply drop … Read more