Skip to navigation
Create an admin anchor with a wordpress function
11.05.20
just the url link: echo get_edit_post_link( get_post_meta( $post->ID, 'order_id', true )); create an anchor: echo edit_post_link( __( '#'. get_post_meta( $post->ID, 'order_id', true ), 'textdomain' ), '
', '
', get_post_meta( $post->ID, 'order_id', true ), 'btn btn-primary btn-edit-post-link' );
https://developer.wordpress.org/reference/functions/edit_post_link/
Reply
Anonymous
Information Epoch 1783282992
Live free or die.
Home
Notebook
Contact us