wp_ajax_get_permalink()

Ajax handler to retrieve a permalink.


Description Description


Source Source

File: wp-admin/includes/ajax-actions.php

function wp_ajax_get_permalink() {
	check_ajax_referer( 'getpermalink', 'getpermalinknonce' );
	$post_id = isset( $_POST['post_id'] ) ? intval( $_POST['post_id'] ) : 0;
	wp_die( get_preview_post_link( $post_id ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.