| 开发者 | indie49 |
|---|---|
| 更新时间 | 2026年9月17日 19:14 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
indie49_copy_post_link_enabled decides whether the action is shown for a post.indie49_copy_post_link_url changes the URL copied for a post.indie49_copy_post_link_term_enabled decides whether the action is shown for a term.indie49_copy_post_link_term_url changes the URL copied for a term.add_filter( 'indie49_copy_post_link_enabled', function ( $enabled, $post ) { return $enabled && 'product' !== $post->post_type; }, 10, 2 );
add_filter( 'indie49_copy_post_link_url', function ( $url, $post ) { return add_query_arg( 'utm_source', 'newsletter', $url ); }, 10, 2 );
indie49-copy-post-link folder to /wp-content/plugins/.Tick the rows you want, choose Copy links in the Bulk actions menu, above or below the list, and press Apply. A notice tells you how many links were copied. Selected items without a public link, such as drafts, are skipped and counted separately.
Yes. Any content type with public URLs that uses the standard WordPress list gets the action, whether it comes from your theme, from a plugin or from your own code. Content types without public URLs, such as form entries or menu items, are left alone.
Yes, and with any custom taxonomy that has public archive pages. Taxonomies used only internally by plugins are left alone.
A draft or a scheduled post does not have its final address yet. Until it is published, WordPress only gives it a temporary link that visitors cannot open, not the permalink people will see.
It follows the WordPress admin: actions are blue, destructive actions such as Trash are red, and confirmations are green. It also respects the admin color scheme each user chooses.
Yes. It uses the clipboard library bundled with WordPress, the same one behind Copy URL in the Media Library. On HTTPS sites, if your browser refuses to copy several links, the notice shows them in a box so you can copy them by hand.
Yes. Tab to the row, reach Copy link and press Enter. Screen readers announce when links have been copied.
indie49_copy_post_link_term_enabled and indie49_copy_post_link_term_url filters.indie49_copy_post_link_url filter to change the copied URL.