Switch language

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




wp_delete_link [ WordPress Function ]

wp_delete_link ( $link_id )
Parameters:
  • (int) $link_id ID of the link to delete
Returns:
  • (bool) True
Defined at:



Delete link specified from database

Source


<?php
function wp_delete_link$link_id ) {
    global 
$wpdb;

    
do_action'delete_link'$link_id );

    
wp_delete_object_term_relationships$link_id'link_category' );

    
$wpdb->delete$wpdb->links, array( 'link_id' => $link_id ) );

    
do_action'deleted_link'$link_id );

    
clean_bookmark_cache$link_id );

    return 
true;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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