Finally, I make it, the way without losing the access to WordPress environment:
add_action( 'edit_form_after_title', 'custom_button' );
function custom_button() {
$button = sprintf('<a href="https://wordpress.stackexchange.com/questions/273582/%1$s" class="button button-primary button-large">%2$s</a>', esc_url( add_query_arg( 'link' , true, get_the_permalink() ) ), 'Custom Button'
);
print_r($button);
}
Update:
Hint: Please make a function for validation the url for ssl and wrap get_the_permalink() inside it.
Related Posts:
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Permalinks not working (.htaccess is writable)
- Change Buddypress Admin Profile Page Permalink
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- Mystery ghost page not appearing in Admin
- AllowOveride All causes assetts and Admin Urls to 404
- Changing permalinks gives me 404 errors on nginx
- Pretty permalinks for search results with extra query var
- Does WordPress automatically do 301 redirect if I change permalink
- ‘post_type_link’ filter not working
- Update URL Snippet to Canonical Permalink URL
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- Broken wordpress permalinks on pages only
- Permalink: postname EXCEPT for blog
- Change website URL without breaking links or images? WP 3.3
- How to identifty post from its URL in 404 page?
- Rewrite rule never matching
- Redirect user if it’s not logged in
- Random Alphanumeric Key URLs
- Custom url for a single page
- Search result permalink
- Permalinks Structure and 404 Question
- Rewrite URL for results of a custom WP_Query
- Using ‘Primary Category’ in URL
- Change permalinks with ACF values
- template_include not loading -instead goes to index.php
- Changing Custom Permalink with Filter
- WordPress installation in subfolder not working with nginx
- Confusion about how a URL is being parsed
- Clean install – Changing permalinks in twentyeleven give 404
- How do I get all the URLs from my WordPress site?
- Why is add_rewrite_endpoint incompatible with /%category%/%postname%/ permalink structure?
- Custom query var rewriting with only variable
- Date Archives’ Permalinks under Category folder
- add_rewrite_rule not working for me
- Using WP Rewrite, but just not “getting it”
- Rewrite CPT permalinks and include WPML language
- Need To Add Custom rewrite base url for individual user
- 301 Redirect for Non-Date Based URL’s
- WordPress is suppressing page extensions!
- Strange number at the end of wordpress permalinks
- Custom permalink structure gives 404
- Category with the same slug
- Do WordPress Permalinks Refer to a Lookup Table in the Database?
- Permalinks settings
- Changing permalinks structure without loosing SEO
- Change Structure Permalink => Error 404? How to redirect
- how do links move when I move my site?
- Permalink for specific page name
- Permalink for PDF of article
- Comment author url link is wrong? How to change from authors/ to author/
- Why can’t change the permalink of my page/post?
- Direct link to post when multiple categories are selected
- Make custom post available under main domain directly?
- Getting an ID from a URL, why can WP do this itself, but none of of the functions provided get it right?
- Ignore postname in permalink
- Add variables to all permalinks in site
- Big arabic permalinks not work
- Fix 404 error after changing permalink structure
- How can I set up a secondary permalink structure?
- External PHP file & Pretty Permalink
- How to get links to user and tag by its name?
- Help me fix these crazy attachment page URLs (rewrite?)
- Unable to rename permalink
- WordPress permanent links not working (the weird way)
- How to enable %postname% permalinks on Mac?
- How do I rewrite attachment urls when permalink structure contains %category%?
- How do I structure my permalinks in WordPress?
- WordPress wildcard route to page
- WordPress Attachment Page URL Rewrite!
- Customize URL for specific tags archive
- Permalink Issue | Too many redirects
- Permalink prefix change
- why wordpress keeps redirecting to old page after deleting it?
- Parent/Child Relationships with Multisites?
- Rewrite posts url as they’re all children of a page
- wp_dropdown_categories links 404
- Permalink problem ( Blog posts vs custom post types)
- I can get the permalink or the excerpt to work correctly, but not both
- Added incorrect rewrite rule now getting an error
- Permalink Rewrite with Archive – Archive gets 404
- WP Admin Bar not showing with custom permalink structure for pages
- get_permalink wrongfully returns only year and month and not all the link
- Link to most recent child page
- Automatic -1 suffix being added to the permalinks of a page when the page does not exist
- Permalink Issue – Funny & Weird
- WordPress permalink still not working (error or not understood?)
- Permalink for pages
- Pagination is not working, how to trace it properly?
- Problem when i configure permalink
- Getting the top level permalink using get_post_ancestors()
- wordpress home is gone
- how to create several url aliases for a page
- Post URL not working according to permalink setting
- Strip category base from URL?
- Does the error “A structure tag is required when using custom permalinks.” mean my permalinks haven’t saved?
- Remove parent product category slug from product_cat url woocommerce
- How to make my custom permalink pull up the correct post