What can I do if WordPress requests the FTP connection information for the update?

In general, this problem occurs when file or folder permissions are not set correctly. If this has been checked but the problem persists, the following entry should be made in wp-config.php: define(‘FS_METHOD’, ‘direct’); If this does not solve the problem, you should check whether the web space on the server has been used up.

How can I hide an activated plugin in the plugin list in the backend?

With the following code in the functions.php. function hide_plugin_trick() { global $wp_list_table; $hidearr = array(‘plugin-folder/plugin.php’); $myplugins = $wp_list_table->items; foreach ($myplugins as $key => $val) { if (in_array($key,$hidearr)) { unset($wp_list_table->items[$key]); } } } add_action(‘pre_current_active_plugins’, ‘hide_plugin_trick’); However, if the plugin also makes an entry in the backend page menu, it will not be hidden by this code.

How can I regenerate thumbnails?

If the settings for image sizes have been adjusted, a large number of images are often not stored correctly in the system. In this case, these should be regenerated. The “Force Regenerate Thumbnails” plugin provides an automatic solution here.

How can I add another column for the file size in the media library?

It is certainly not an everyday question, but an additional column in the media library for the file size in the list view can be a great help to find files that are too large so that they can be optimized afterwards. add_filter(‘manage_upload_columns’, ‘bp_add_column_file_size’); add_action(‘manage_media_custom_column’, ‘bp_column_file_size’, 10, 2); add_action(‘admin_head’, ‘bp_add_media_styles’); // Create the column function […]

How to remove unnecessary scripts and CSS files from a theme?

Not all scripts and CSS files that themes and plugins use are needed. So there is optimization potential here, which is especially advantageous when loading the website. 1.) The first step is to find out the ID. This is best done with the Inspector. <link rel=’stylesheet’ id=’default_styles-css’ href=’https://example.com/wp/wp-content/themes/example/style.css’ type=’text/css’ media=’all’ /> 2. If the ID […]

How to access the WordPress plugin repository?

As a WordPress plugin developer, you get access to the repository from where the plugin is output to the WordPress directory. However, at the first moment the question arises how to transfer your file to the repository. Solution: The free TortoiseSVN allows you to do exactly that. If you enter your repository URL here, you […]