Skip to content

Instantly share code, notes, and snippets.

@iammahmudur
Created May 3, 2013 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iammahmudur/5507261 to your computer and use it in GitHub Desktop.
Save iammahmudur/5507261 to your computer and use it in GitHub Desktop.
This will replace the word 'term' with taxonomy name. Plugin: http://wordpress.org/extend/plugins/cpt-onomies/ File: js\admin-post.js Line: 236 Example: https://www.diigo.com/item/image/3wpgc/uyow
// set error message
$cpt_onomies_add_tag_error_message = cpt_onomies_admin_post_L10n.term_does_not_exist.replace( /term/g, $taxonomy ) + ' <a href="post-new.php?post_type=' + $taxonomy + '" target="_blank">' + cpt_onomies_admin_post_L10n.add_a_term.replace( 'term', ' new ' + $taxonomy ) + '</a>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment