wp_set_link_cats [ WordPress Function ]
wp_set_link_cats ( $link_id = 0, $link_categories = array() )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: wp_get_link_cats, wp_get_links, wp_set_post_cats, wp_insert_link, wp_list_cats
Update link with the specified link categories.
Source
<?php
function wp_set_link_cats( $link_id = 0, $link_categories = array() ) {
// If $link_categories isn't already an array, make it one:
if ( !is_array( $link_categories ) || 0 == count( $link_categories ) )
$link_categories = array( get_option( 'default_link_category' ) );
$link_categories = array_map( 'intval', $link_categories );
$link_categories = array_unique( $link_categories );
wp_set_object_terms( $link_id, $link_categories, 'link_category' );
clean_bookmark_cache( $link_id );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- php function get_users_drafts( $user_id ) - WordPress SVN
result ) $result = array(); return array_unique($result); } function wp_set_link_cats ($link_ID = 0, $link_categories = array()) { global $wpdb; // If $link_categories ...
core.svn.wordpress.org - wp_insert_link (WordPress Function) - WPSeek.com
Similar Functions: wp_get_links, wp_set_link_cats, wp_insert_user, wp_insert_term, wp_insert_comment. This function inserts/updates links into/in the database ...
wpseek.com - Synchronize Delicious and WordPress: the WordPress API ...
These information must contain the field link_id to identify the bookmark to modify . The function calls wp_insert_link , that we can use directly. wp_set_link_cats( ...
www.emmanuelgeorjon.com - dropdown_cats() WordPress function reference, arguments and ...
list_cats() · wp_dropdown_cats() · wp_get_link_cats() · wp_get_post_cats() · wp_list_cats() · wp_set_link_cats() · wp_set_post_cats() · created R powered WP, ...
queryposts.com