wp_update_link [ WordPress Function ]
wp_update_link ( $linkdata )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_update_plugin, wp_update_plugins, wp_delete_link, wp_update_post, wp_update_comment
Update a link in the database.
Source
<?php
function wp_update_link( $linkdata ) {
$link_id = (int) $linkdata['link_id'];
$link = get_bookmark( $link_id, ARRAY_A );
// Escape data pulled from DB.
$link = add_magic_quotes( $link );
// Passed link category list overwrites existing category list if not empty.
if ( isset( $linkdata['link_category'] ) && is_array( $linkdata['link_category'] )
&& 0 != count( $linkdata['link_category'] ) )
$link_cats = $linkdata['link_category'];
else
$link_cats = $link['link_category'];
// Merge old and new fields with new fields overwriting old ones.
$linkdata = array_merge( $link, $linkdata );
$linkdata['link_category'] = $link_cats;
return wp_insert_link( $linkdata );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- PHPXRef 0.7 : WordPress : Function Reference: wp_update_link()
Function and Method Cross Reference. wp_update_link(). Defined at: /wp-admin/ includes/bookmark.php -> line 240. Referenced 1 times: ...
phpxref.ftwr.co.uk - wp_update_link (WordPress Function) - WPSeek.com
WordPress lookup for wp_update_link, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - #20447 (wp_delete_user( int, $user_id ) does not flush post caches ...
Attachments. 20447.patch · Download (1.9 KB) - added by kurtpayne 9 days ago. Use wp_update_post and wp_update_link ...
core.trac.wordpress.org - Synchronize Delicious and WordPress: the WordPress API ...
wp_update_link( $linkdata ), Modify a bookmark with the information specified. These information must contain the field link_id to identify the bookmark to modify ...
www.emmanuelgeorjon.com