Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_to_ping [ WordPress Function ]

get_to_ping ( $post_id )
Parameters:
  • (int) $post_id Post ID
Uses:
  • $wpdb
Returns:
  • (array)
Defined at:



Retrieve URLs that need to be pinged.

Source


<?php
function get_to_ping($post_id) {
    global 
$wpdb;
    
$to_ping $wpdb->get_var$wpdb->prepare"SELECT to_ping FROM $wpdb->posts WHERE ID = %d"$post_id ));
    
$to_ping sanitize_trackback_urls$to_ping );
    
$to_ping preg_split('/\s/'$to_ping, -1PREG_SPLIT_NO_EMPTY);
    
$to_ping apply_filters('get_to_ping',  $to_ping);
    return 
$to_ping;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics