Migrating problem from Joomla to WP

There’s no way to magically extract and migrate articles from within a JPA backup file directly into WordPress. You can use Akeeba eXtract Wizard to extract the database file from the JPA file and then you have access to the article HTML via a text editor but you’ll need a working copy of WordPress to … Read more

Uninstalling plugins across all sites

For a little bit more overview the plugin WordPress-Multisite-Enhancements might help. This adds a column to view the activation in each site of the network. A screenshot will demonstrate the result. Many plugins uninstall their data inside the database only if you delete the plugin on the UI of the back end. Only removing the … Read more

How to remove admin main menu name repetition

You can remove it from the submenu array: function add_my_menu(){ global $submenu; add_menu_page( ‘Main Menu’, ‘Main Menu’, ‘manage_options’, ‘main-menu-settings’, ‘main_menu_settings’); add_submenu_page( ‘main-menu-settings’, ‘Sub Menu’, ‘sub menu’, ‘manage_options’, ‘sub-menu’, ‘sub_menu_settings’); unset( $submenu[‘main-menu-settings’][0] ); } The parent item is added by add_submenu_page in plugin.php as the first link if the parent doesn’t already have a submenu, resulting … Read more

Howto check version of another plugin and then add a submenu page to it

Ok i got it. The solution is to use an earlier hook for checking plugins. But then the function get_plugins() is not available so i have to include it for using. The working code: class acf_multisite_sync { function __construct() { add_action(‘plugins_loaded’, array($this, ‘acf_sync_init’)); } function acf_sync_init() { if (!function_exists(‘get_plugins’)) { require_once ABSPATH . ‘wp-admin/includes/plugin.php’; } … Read more

Using AJAX to generate front end / viewer end pages

Your are pointing to a non existing AJAX file. $.ajax( { // … url : ‘/path/myfile.php’, // … } ); WordPress has a predefined file for that: admin_url( ‘admin-ajax.php’ ) When you are running public queries, then you need to add it to wp_localize_script( ‘your-script-handle’, ‘yourJavaScriptAccessibleObject’, array( ‘ajaxurl’ => esc_js( admin_url( ‘admin-ajax.php’ ) ), ) … Read more