.htaccess in wp-admin produces a redirect loop
Redirection depends on server configuration. You need to add ErrorDocument 401 default to your main .htaccess to prevent redirection. You can refer the article Password-protect-wp-admin for more details
Redirection depends on server configuration. You need to add ErrorDocument 401 default to your main .htaccess to prevent redirection. You can refer the article Password-protect-wp-admin for more details
I cannot speak to all plugins loading even when disabled, but gravity forms is not designed for heavy usage and could well be contributing significantly to the problem. I used to work with a large client that used gravity forms and their admin panels ( and submitting forms ) became so slow that eventually they … Read more
If that listing has too many pages, maybe you’ll run into troubles. You probably already know that this can be set in the Screen Options of the page http://example.com/wp-admin/edit.php?post_type=page. If you try to put a really high value there, this warning pops up and the system doesn’t accept it: But the following permanently sets this … Read more
For the custom link into the admin menu, you need to pick up a top-level menu item by its slug and register the function using the admin_menu action hook. Here is the list of Main Admin Menu slugs. index.php => Dashboard edit.php => Posts upload.php => Media link-manager.php => Links edit.php?post_type=page => Pages edit-comments.php => … Read more
If you know the sub-net of your VPN you could restrict access to /wp-admin via .htaccess using standard Apache rules. <Directory /var/www/wp-admin/> Order deny,allow Allow from 192.168.1.0/24 Allow from 127 </Directory> Obviously you’d need to adjust the directory and IP address subnet to suit your needs. To restrict access to a specific file: <Files _FILE_.php> … Read more
You basically have to tag the <a> link Google Analytics provides an easy way to track clicks on links that lead to file downloads. Because these links do not lead to a page on your site containing the tracking code, you’ll need to tag the link itself with the _trackPageview() JavaScript if you would like … Read more
You can use the filter screen_layout_columns to set only one column for the post screen get_user_option_screen_layout_post to force the user option to 1. If you want to use that for custom post type then use get_user_option_screen_layout_{post_type} The following code will do it: function so_screen_layout_columns( $columns ) { $columns[‘post’] = 1; return $columns; } add_filter( ‘screen_layout_columns’, … Read more
It’s hard to say without seeing all the code. Yes if you don’t refer to the instance – then it won’t really be a unique ID. Something like this would work – you would just reference the class property $id: for ( $i = 0; $i <= count( $suffixes ); $i++) { wp_editor( ‘your content’, … Read more
I succeeded in this, but it is a mess. Basically, the walker should have the following parameters: $this->db_fields[‘parent’] = ‘post_parent’; $this->db_fields[‘id’] = ‘ID’; But, to get that in place, you need to rip out the existing metabox callback, copy it, change one line so you get an extra filter, and place it back. Then you … Read more
The problem is “When the data managed by the plugin is edited. You have to set your own dirty-flag (e.g. a value in a hidden input field, setup a js-variable) and check your dirty-flag if the user leave the page. But how could you check if the data in the metabox is edited? Are there … Read more