In Wordpress admin, looking at a custom post type list screen
Task: I need to copy the text of the column "Shortcode" (the text is already shown in the list).
Problem: I cannot access the text as the activated plugin "Post Types Order" inhibits overlaying the text by showing me a mouse pointer as part of some means to move the post to some other position (a feature I need)
My idea: When hovering the mouse over a post a number of command-buttons ("Edit", "QuickEdit" and "Trash") show up on the left hand side as can be seen here
An additional command-button "Copy Shortcode" to this set of commands could do the job for me.
Question: How do I add a button to this list right next to "Trash"? (copying to the clipboard using Javascript should be ok)
I came up with a more comfortable solution that now fills the column "Shortcode" with hyperlinks of the shortcode text. Thus a simple click on the desired shortcode copies the shortcode-text to the clipboard
Here is the code:
The Javascript for copying the text to the clipboard was created according to the stackoverflow.com post 'Click button copy to clipboard using jQuery'. Thanks for the helpful comments.