Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Filter in a URL to the pingback stack in WordPress
function pingback_format_link_url($post_links, $post_id) {
$url = get_post_meta($post_id, '_format_link_url', true);
if (!empty($url) && !in_array($url, $post_links)) {
$post_links[] = $url;
return $post_links;
add_filter('pre_ping_post_links', 'pingback_format_link_url', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.