plugin enqueue style on all pages

You’re enquing on the admin_enqueue_scripts hook, which is why it’s only showing up on admin pages If we look at an example from the official documentation: /** * Proper way to enqueue scripts and styles */ function wpdocs_theme_name_scripts() { wp_enqueue_style( ‘style-name’, get_stylesheet_uri() ); wp_enqueue_script( ‘script-name’, get_template_directory_uri() . ‘/js/example.js’, array(), ‘1.0.0’, true ); } add_action( ‘wp_enqueue_scripts’, … Read more

Update WP option by plugin

That option is special in that WordPress has code to intercept your call for security reasons: https://codex.wordpress.org/Function_Reference/update_option_new_admin_email This function intercepts changes to the administrator’s email address. It keeps the address from being updated and instead sends the user a confirmation email, with a link to confirm the change. What you’re trying to do could be … Read more

How to get a list of all the available plugins names

You can use this URL to run GET request: https://api.wordpress.org/plugins/info/1.1/?action=query_plugins&request[page]=2&request[per_page]=100&request[browse]=new You will get JSON object that includes plugins, the total number of plugins, page, the total number of pages. It will sort plugins from newest to oldest.

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