Tag Info

Hot answers tagged

1

Search for add_meta_box(). This function is the key to add custom areas to the edit screen and inside this can you handle your custom requirements.


1

Use orderby=id You can simply sort the tags by term_id with the following GET request: /wp-admin/edit-tags.php?taxonomy=post_tag&orderby=id&order=desc and similar for other taxonomies. Why does this work? The orderby parameter is read through: if ( !empty( $_REQUEST['orderby'] ) ) $args['orderby'] = trim( wp_unslash( $_REQUEST['orderby'] ) ...


1

Actually your question is off-topic here, because it's javascripts specific and not specific to WordPress. But I'm answering it and making it more WordPress-centric so that others get help too. The following function will enqueue a custom.js file from your theme folder's /js subfolder to only admin panel (put it in functions.php of your theme): function ...


1

By passing the _builtin argument to get_post_types(), only WordPress default post types will be returned. Instead, just pass public as an arguement, Here's an example of output on a development site with WooCommerce activated: var_dump(get_post_types(['public' => true])); //result array(4) { ["post"]=> string(4) "post" ["page"]=> ...


1

Placing this answer for those people who're trying to fix the same issue. It's important where add_action('wp_ajax_setAsyncCheckProduct', [$this, 'setAsyncCheckProduct']); resides. In my case the issue was finally fixed moving a similar line to the main plugin file, where all concrete classes are included and initialised. Of course the line had to be ...



Only top voted, non community-wiki answers of a minimum length are eligible