How can I import a class privately into a plugin?

Use namespaces, but check the PHP version on the server side and deactivate the plugin with a useful error message if the requirements aren’t met. If you look at the official statistics, you can see how many installations are still running on outdated WordPress versions. But almost all new plugins require the latest WordPress version, … Read more

Preventing a plugin from updating

First of all… It is a really bad idea to modify existing plugin. But if you really have to do this, then you can hide update link with this code (this one works for Yoast SEO): function remove_update_notification_link($value) { if ( array_key_exists(‘wordpress-seo/wp-seo.php’, $value->response) ) { $value->response[ ‘wordpress-seo/wp-seo.php’ ]->package=””; } return $value; } add_filter(‘site_transient_update_plugins’, ‘remove_update_notification_link’); The … Read more

SSL redirect loop using WordPress HTTPS Plugin

I recently struggled with a similar issue, so I’ll offer a couple of additional pieces of information for people who search for this question. The first step you should take when trying to force SSL for Admin of your site is to follow the directions in the codex . This means defining the FORCE_SSL_ADMIN option … Read more

Plugin or advice on how to parse XML in real-time?

You could the following to achieve this in the “WordPress way”: Add code via plugin or child theme In the code add a wp cron task The task should get the file with wp_remote_get Parse the xml file with SimpleXMLElement Update the content to meta fields of the post with update_post_meta You could display the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)