How can I have some taxonomies to always have "the most used tags" displayed when a new post is being created.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
There does not appear to be any way to hook into that from inside PHP
You should probably
wp_enqueue_script this script instead (always set position to "footer"). And also hook to the
edit.php pages if necessary. Moreover,
$expanded_for should probably be escaped.