Make Widget appear on Dashboard

Widgets aren’t metaboxes, they can’t be added to the dashboard directly. wp_add_dashboard_widget expects a callable function, not a sidebar ID. You can’t plug a widget or a widget area/sidebar into a function like that. Instead, you would need to add a metabox, then, in its callback display what you wanted to display, e.g. add_action(‘wp_dashboard_setup’, ‘custom_dashboard_widgets’); … Read more

Two types of product categories on shop page

You want to exclude the Uncategorized category from the loop or widget? That would take some custom code to exclude it from that widget. Or you could probably set one of these categories as the default and just delete Uncategorized. EDIT: You can call the WooCommerce Products into page content by category using shortcodes. https://docs.woocommerce.com/document/woocommerce-shortcodes/

Can’t Target a Widget’s Elements using jQuery

Man, every time all it takes is to press that post button and then I find the answer seconds later – lol: jQuery(document).ready(function($){ $(document).ready(function() { $(document).on(‘can_embed_loaded’, function() { // do your work here, after the widget is loaded $(‘input[name=”commit”]’).val(‘Sign My Awesome Petition’); }); }); });