How to check if a WordPress Plugin is Active - WP DEV: How to check if a WordPress Plugin is Active?

WP DEV: How to check if a WordPress Plugin is Active?

To check if a plugin is active in WordPress, you can use if ( is_plugin_active( ‘plugin-directory/plugin-file.php’ ) ) { if ( is_plugin_active( ‘akismet/akismet.php’ ) ) { // plugin is active } else { // plugin is inactive } You can also use the get_plugins() function to retrieve all the plugins installed on the site and … Read full article →

Hide your WordPress site from Google and other Search Engines - Hide your WordPress site from Google and other Search Engines

Hide your WordPress site from Google and other Search Engines

If you want to hide your WordPress site from search engines, you can use the “Discourage search engines from indexing this site” option in the “Reading Settings” page of your WordPress dashboard. To access this option, follow these steps: This will add a “noindex” directive to your site’s pages, which tells search engines not to … Read full article →

wp installatron import - How to import an existing WordPress website in Installatron

How to import an existing WordPress website in Installatron

If you have manually installed one of the supported Installatron applications, you can easily import the application through Installatron to take advantage of all the features that Installatron offers. The steps when importing into Installatron are the same for all applications, so we will use the example of importing a WordPress application for this article. … Read full article →

Call to undefined function wp filesize WPXSS Blog - Uncaught Error: Call to undefined function

Uncaught Error: Call to undefined function “wp_filesize” in /wp-admin/includes/image.php:249

The error indicates that a WordPress plugin or theme is requesting the “wp_filesize” function but the WordPress core is either corrupted or outdated and does not have that function yet. Uncaught Error: Call to undefined function “wp_filesize” in /wp-admin/includes/image.php:249 WordPress 6.0 introduced the wp_filesize() function which should be used in favor of PHP’s filesize(). If … Read full article →

Reinstall all WordPress plugins using WP CLI - Reinstall all WordPress plugins using WP-CLI

Reinstall all WordPress plugins using WP-CLI

Here is a convenient WP-CLI command that I use when cleaning hacked WordPress websites in order to reinstall all plugins from WordPress.org It consists of two commands: get a list of all active plugins, then force reinstall for each plugin. To reinstall all WordPress themes in the same manner use: