Tag Info

New answers tagged

0

Try this : Add this code to functions.php file. add_action( 'init', 'droid_buttons' ); function droid_buttons() { add_filter( "mce_external_plugins", "droid_add_buttons" ); add_filter( 'mce_buttons', 'droid_register_buttons' ); } function droid_add_buttons( $plugin_array ) { $plugin_array['droid'] = get_template_directory_uri() . ...


1

There are no direct filters using which we can change the content of Name column. So to get what you want, we should remove 'Name' column too and create our own Name column. Therefore, modify_user_columns function will be like this function modify_user_columns($column) { $column = array( "cb" => "<input type=\"checkbox\" />", ...


0

I know it's an old question, but I recently ran into a similar problem and the ErrorDocument directive alone did not solve it for me. In my case, I had an incorrectly formatted .htpasswd file. When I recreated one using the htpasswd tool, everything worked as expected. Just thought I'd pass this along as an option in case someone else runs into the same ...


0

You have to change the Site address (URL) and WordPress address (URI) through admin panel before moving the site to another url. In your case you can't do that to a live site, so you can try a tool like https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ to change the url from the dev site database. More: ...


1

If this is a single WordPress install, there are a couple database entries with your old domain. Specifically, siteurl and home within wp_posts. That said, if the dev URL is temporary, you can also set the following two constants in wp-config.php: define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); define('WP_SITEURL', WP_HOME . '/'); Provided that ...


5

Usually, this should help: Open your database (with phpmyadmin, navicat, etc) Open the wp_user table and have a look for the ID of your admin user (usually 1) Open the wp_usermeta table and search for the row that has the user_id of your user paste the following string into the meta_value field of the row: a:1:{s:13:"administrator";b:1;} that should be ...


0

As brasofilo mentioned you can do a str_replace() on the admin_post_thumbnail_html filter. function changeFeaturedImageLinks($content) { $content = str_replace(__('Set featured image'), __('YOUR_CUSTOM_TEXT'), $content); $content = str_replace(__('Remove featured image'), __('YOUR_CUSTOM_TEXT'), $content); return $content; } ...


0

I'm afraid you can't do what you are after - without AJAX, that is. The problem lies with the fact that all/most of the meta boxes are added in an admin-specific context. The add_meta_boxes action hook, for instance, is the most common (and appropriate) place to add custom meta boxes. And this very hook is fired in only three wp-admin files/pages. And ...


0

When you want to protected a content, redirect non-logged users is better done as soon as possible. So, between the 2 hooks in OP 'template_redirect' is better. But you can also use an even earlier hook, to improve security and performance (by skipping unwanted queries). 'wp_loaded' for this sort of things is probably the best choice, because is pretty ...


0

Set the install to default, all plugins inactive and the default theme. After this step will not reduce the load, analyze the install, like with the plugin "Debug Objects", view the queries tab, there will give you information about slow DB Queries.


0

The most common reason this happens is--plugins that add functionality to the Dashboard, especially columns in post/page info. Try deactivating any plugins that do that, and see what happens. Reactivate them one by one to see if it's a cumulative effect, or a specific plugin.


0

As indicated elsewhere, this is actually part of the WMPL plugin. To turn it off you can simply deactivate the additional installer plugin which is used to keep WMPL -and other 3rd party apps- up to date.


0

That is part of WPML's functionality to check for known incompatibilities with 3rd party plugins. To my knowledge, there is no way to toggle that off.


2

Please note, this should not be the accepted answer, this is only an extension to the answer given by @ungestaltbar, so please, @willow, accept the other answer, and if you deemed my answer useful, simply just give me an upvote :-) The biggest issue that should solve your problem have been discussed in the other answer, but I would like to point out some ...


6

Remember Apple's "Goto Fail"? Similar situation: Your code actually does this, when indentation is corrected: foreach ( $post_types as $post_type ) remove_meta_box('trackbacksdiv', $post_type, 'normal'); remove_meta_box('postcustom', $post_type, 'normal'); remove_meta_box('authordiv', $post_type, 'normal'); remove_meta_box('postexcerpt', ...


0

Jetpack's menu is added quite late, so you'll need to change the default priority to remove it a bit later (priority 999), like so: function jetpackme_remove_jetpack_menu() { if ( ! current_user_can( 'manage_options' ) ) { remove_submenu_page( 'jetpack', 'jetpack' ); } } add_action ( 'admin_menu', ...


0

This plugin will do exactly that: Members Only. Don't worry about the warning at the top about not being updated in over 2 years, I use the plugin all the time, there are no issues with it and no security flaws that I have run into. After you install the plugin, there is a small configuration panel under Settings.


1

Ok, I revisited this and revised my answer.. But like I said before: the hook you are (trying) to use won't/can't work for the purpose you are aiming for, simply because its only occurrence is in class-wp-posts-list-table.php, which nomen est omen is used to show the post list, the right place should be class-wp-terms-list-table.php. 1. What you ...


1

Users are queried differently than posts so you have to hook into the 'pre_user_query' action to filter user queries. Let me know if this works: add_action( 'pre_user_query', 'my_pre_user_query', 1 ); function my_pre_user_query( $query ) { global $wpdb, $current_screen; // Only filter in the admin if ( ! is_admin() ) return; // ...



Top 50 recent answers are included