Can plugins become obsolete?

I presume WordPress plugins are made by third parties. For the moment, yes; all except for “Hello Dolly!” and “Akismet”, which are part of the core distribution. Do plugins have to be kept up to date with WordPress upgrades? Certainly they should be; but they’re not required to be kept up-to-date. Can plugins become obsolete? … Read more

Overrides Plugin Files on WordPress Themes

If you’ve written the plugin, then I’d suggest you add something like this: // Define these constants once in your main plugin init file define( ‘YOUR_PLUGIN_SLUG’, ‘your-plugin-slug’ ); define( ‘YOUR_PLUGIN_DIR’, plugin_dir_path( __FILE__ ) ); define( ‘YOUR_PLUGIN_TEMPLATE_DIR’, trailingslashit( YOUR_PLUGIN_DIR ) . ‘templates’ ); define( ‘YOUR_PLUGIN_THEME_TEMPLATE_OVERRIDE_PATH_DIR’, trailingslashit( get_stylesheet_directory() . “https://wordpress.stackexchange.com/” . YOUR_PLUGIN_SLUG ); // Define a function … Read more

Plugin readme.txt and assets internationalization

You can use the translation option via “GlotPress” on each plugin in the official plugin repository. You find all relevant hints in this post of the make blog at wordpress.org. In short, on each plugin you have a translation link and that give all users the chance to contribute translations.

How can I customize the wp_list_categories

Even if a wp_list_categories filter exists, it passes (and so you have to return) the html markup generated by wp_list_categories() function. This means that if you want use that filter you have to alter the DOM with php, and even if it’s possible (hopefully using external php libraries), sure it’s not the best solution for … Read more

Can’t use /wp-json/wp/v2/plugins API endpoint even as administrator

SUGGESTIONS I suggest the following: first ensure you are running WordPress version 5.5.* as this version adds the endpoints for /wp/v2/plugins see: New and modified REST API endpoints in WordPress 5.5 using basic authentication issue a request as per the following using curl curl –user username:password https://example.com/wp-json The first request should succeed regardless because it … Read more

Validation Function for URL in plugin

I would look into PHP’s parse_url() and/or filter_var() with FILTER_VALIDATE_URL filter. parse_url() gives you a bit more control. Combine that with a sanitization as mentioned at the end. Here are couple use cases that will hopefully give you a better idea on how to proceed: If you want to verify that the url’s domain is … Read more