Development of plugins to add components like JqueryUI

WordPress has integrated jQuery UI? The official docs lists that a large amount of jQuery UI is present in core already, and needs only to be enqueued: https://developer.wordpress.org/reference/functions/wp_enqueue_script/ In the official page of https://codex.wordpress.org do I have an option similar to https://jqueryui.com/ that has add-ons to copy and paste? No it doesn’t, but that’s because … Read more

Best way to salvage a very old WP site

You will have to scrape the site for the data, or better if you have back-end access so you export the data in a file, then checking the file you can modify it to make it ready for import in the latest version, just check how it changed. I did it before but with traditional … Read more

Overriding current theme files via plugin

Template logic is primarily controlled by template-loader.php. The part you are interested in would be get_404_template(), which passes on to generic get_query_template() with number of hooks to override the logic and result. {$type}_template (so 404_template) filter would probably do it.

strange shortcode error: does shortcodes requires any dependency?

Problem 1 It doesn’t work because you’re using new_weber but you’re registering news_burner, and they aren’t the same So instead use: [news_burner] You only need a closing shortcode if it’s containing content which that plugin does not. Problem 2 Shortcodes don’t work in text widgets out of the box, you can add that functionality via … Read more

Function call in wordpress short code handler fails

You’re returning X(), but your X() function appears to be within a class. Presumably the same class as handleShortcode(). So you need to call it the normal way you call functions within a class: public function handleShortcode($atts) { return $this->X(); } private function X() { return ‘Hi world’; } If you’re not in a class … Read more

Correct Plugin File Path

https://developer.wordpress.org/reference/functions/plugin_dir_path/ It looks like this function adds a trailing slash, so starting your string with a slash is not required try; require_once(plugin_dir_path( __FILE__ ) . ‘assets/MCAPI.class.php’);