[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
WordPress Bookmark Administration API
File Size: | 379 lines (12 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
add_link() X-Ref |
Adds a link using values provided in $_POST. return: int|WP_Error Value 0 or WP_Error on failure. The link ID on success. |
edit_link( $link_id = 0 ) X-Ref |
Updates or inserts a link using values provided in $_POST. param: int $link_id Optional. ID of the link to edit. Default 0. return: int|WP_Error Value 0 or WP_Error on failure. The link ID on success. |
get_default_link_to_edit() X-Ref |
Retrieves the default link for editing. return: stdClass Default link object. |
wp_delete_link( $link_id ) X-Ref |
Deletes a specified link from the database. param: int $link_id ID of the link to delete. return: true Always true. |
wp_get_link_cats( $link_id = 0 ) X-Ref |
Retrieves the link category IDs associated with the link specified. param: int $link_id Link ID to look up. return: int[] The IDs of the requested link's categories. |
get_link_to_edit( $link ) X-Ref |
Retrieves link data based on its ID. param: int|stdClass $link Link ID or object to retrieve. return: object Link object for editing. |
wp_insert_link( $linkdata, $wp_error = false ) X-Ref |
Inserts a link into the database, or updates an existing link. Runs all the necessary sanitizing, provides default values if arguments are missing, and finally saves the link. param: array $linkdata { param: bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false. return: int|WP_Error Value 0 or WP_Error on failure. The link ID on success. |
wp_set_link_cats( $link_id = 0, $link_categories = array() X-Ref |
Updates link with the specified link categories. param: int $link_id ID of the link to update. param: int[] $link_categories Array of link category IDs to add the link to. |
wp_update_link( $linkdata ) X-Ref |
Updates a link in the database. param: array $linkdata Link data to update. See wp_insert_link() for accepted arguments. return: int|WP_Error Value 0 or WP_Error on failure. The updated link ID on success. |
wp_link_manager_disabled_message() X-Ref |
Outputs the 'disabled' message for the WordPress Link Manager. |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |