Save Changes
tag array( 'id' => 'amcust-submit' ), // additional attributes ); ?>
> Admin Menu Organizer // Re-register and re-enqueue jQuery UI Core and plugins required for sortable, draggable and droppable when ordering menu items wp_deregister_script( 'jquery-ui-core' ); wp_register_script( 'jquery-ui-core', get_site_url() . '/wp-includes/js/jquery/ui/core.js', array( 'jquery' ), AMCUST_VERSION, false ); wp_enqueue_script( 'jquery-ui-core' ); wp_deregister_script( 'jquery-ui-mouse' ); wp_register_script( 'jquery-ui-mouse', get_site_url() . '/wp-includes/js/jquery/ui/mouse.js', array( 'jquery-ui-core' ), AMCUST_VERSION, false ); wp_enqueue_script( 'jquery-ui-mouse' ); wp_deregister_script( 'jquery-ui-sortable' ); wp_register_script( 'jquery-ui-sortable', get_site_url() . '/wp-includes/js/jquery/ui/sortable.js', array( 'jquery-ui-mouse' ), AMCUST_VERSION, false ); wp_enqueue_script( 'jquery-ui-sortable' ); wp_deregister_script( 'jquery-ui-draggable' ); wp_register_script( 'jquery-ui-draggable', get_site_url() . '/wp-includes/js/jquery/ui/draggable.js', array( 'jquery-ui-mouse' ), AMCUST_VERSION, false ); wp_enqueue_script( 'jquery-ui-draggable' ); wp_deregister_script( 'jquery-ui-droppable' ); wp_register_script( 'jquery-ui-droppable', get_site_url() . '/wp-includes/js/jquery/ui/droppable.js', array( 'jquery-ui-draggable' ), AMCUST_VERSION, false ); wp_enqueue_script( 'jquery-ui-droppable' ); // Main style and script for the admin page wp_enqueue_style( 'amcust-admin-page', AMCUST_URL . 'assets/css/admin-page.css', array(), AMCUST_VERSION ); wp_enqueue_script( 'amcust-admin-page', AMCUST_URL . 'assets/js/admin-page.js', array( 'amcust-jsticky' ), AMCUST_VERSION, false ); } } /** * Add 'Customize now' plugin action link. * * @since 1.0.0 */ function amcust_plugin_action_links( $links ) { $settings_link = 'Customize now'; array_unshift($links, $settings_link); return $links; } /** * Modify footer text * * @since 1.0.0 */ function amcust_footer_text() { if ( is_amcust() ) { ?> Admin Menu Customizer is on github.