[ Index ] |
WordPress Cross Reference |
[Source view] [Print] [Project Stats]
WordPress Post Administration API.
File Size: | 1452 lines (46 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
_wp_translate_postdata( $update = false, $post_data = null ) X-Ref |
Rename $_POST data from form names to DB post columns. Manipulates $_POST directly. param: bool $update Are we updating a pre-existing post? param: array $post_data Array of post data. Defaults to the contents of $_POST. return: object|bool WP_Error on failure, true on success. |
edit_post( $post_data = null ) X-Ref |
Update an existing post with values provided in $_POST. param: array $post_data Optional. return: int Post ID. |
bulk_edit_posts( $post_data = null ) X-Ref |
Process the post data for the bulk editing of posts. Updates all bulk edited posts/pages, adding (but not removing) tags and categories. Skips pages when they would be their own parent or child. param: array $post_data Optional, the array of post data to process if not provided will use $_POST superglobal. return: array |
get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) X-Ref |
Default post information to use when populating the "Write Post" form. param: string $post_type A post type string, defaults to 'post'. return: WP_Post Post object containing all the default post data as attributes |
post_exists($title, $content = '', $date = '') X-Ref |
Determine if a post exists based on title, content, and date param: string $title Post title param: string $content Optional post content param: string $date Optional post date return: int Post ID if post exists, 0 otherwise. |
wp_write_post() X-Ref |
Creates a new post from the "Write Post" form using $_POST information. return: unknown |
write_post() X-Ref |
Calls wp_write_post() and handles the errors. return: unknown |
add_meta( $post_ID ) X-Ref |
{@internal Missing Short Description}} param: unknown_type $post_ID return: unknown |
delete_meta( $mid ) X-Ref |
{@internal Missing Short Description}} param: unknown_type $mid return: unknown |
get_meta_keys() X-Ref |
Get a list of previously defined keys. return: unknown |
get_post_meta_by_id( $mid ) X-Ref |
{@internal Missing Short Description}} param: unknown_type $mid return: unknown |
has_meta( $postid ) X-Ref |
{@internal Missing Short Description}} Some postmeta stuff. param: unknown_type $postid return: unknown |
update_meta( $meta_id, $meta_key, $meta_value ) X-Ref |
{@internal Missing Short Description}} param: unknown_type $meta_id param: unknown_type $meta_key Expect Slashed param: unknown_type $meta_value Expect Slashed return: unknown |
_fix_attachment_links( $post ) X-Ref |
Replace hrefs of attachment anchors with up-to-date permalinks. param: int|object $post Post ID or post object. return: void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success. |
_relocate_children( $old_ID, $new_ID ) X-Ref |
Move child posts to a new parent. param: unknown_type $old_ID param: unknown_type $new_ID return: unknown |
get_available_post_statuses($type = 'post') X-Ref |
Get all the possible statuses for a post_type param: string $type The post_type you want the statuses for return: array As array of all the statuses for the supplied post type |
wp_edit_posts_query( $q = false ) X-Ref |
Run the wp query to fetch the posts for listing on the edit posts page param: array|bool $q Array of query variables to use to build the query or false to use $_GET superglobal. return: array |
get_available_post_mime_types($type = 'attachment') X-Ref |
{@internal Missing Short Description}} param: unknown_type $type return: unknown |
wp_edit_attachments_query( $q = false ) X-Ref |
Executes a query for attachments. An array of WP_Query arguments can be passed in, which will override the arguments set by this function. param: array|bool $q Array of query variables to use to build the query or false to use $_GET superglobal. return: array |
_edit_attachments_query_helper($where) X-Ref |
No description |
postbox_classes( $id, $page ) X-Ref |
Returns the list of classes to be used by a metabox param: unknown_type $id param: unknown_type $page return: unknown |
get_sample_permalink($id, $title = null, $name = null) X-Ref |
{@internal Missing Short Description}} param: int|object $id Post ID or post object. param: string $title (optional) Title param: string $name (optional) Name return: array With two entries of type string |
get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) X-Ref |
Returns the HTML of the sample permalink slug editor. param: int|object $id Post ID or post object. param: string $new_title Optional. New title. param: string $new_slug Optional. New slug. return: string The HTML of the sample permalink slug editor. |
_wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) X-Ref |
Output HTML for the post thumbnail meta-box. param: int $thumbnail_id ID of the attachment used for thumbnail param: mixed $post The post ID or object associated with the thumbnail, defaults to global $post. return: string html |
wp_check_post_lock( $post_id ) X-Ref |
Check to see if the post is currently being edited by another user. param: int $post_id ID of the post to check for editing return: bool|int False: not locked or locked by current user. Int: user ID of user with lock. |
wp_set_post_lock( $post_id ) X-Ref |
Mark the post as currently being edited by the current user param: int $post_id ID of the post to being edited return: bool|array Returns false if the post doesn't exist of there is no current user, or |
_admin_notice_post_locked() X-Ref |
Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post. return: none |
wp_create_post_autosave( $post_id ) X-Ref |
Creates autosave data for the specified post from $_POST data. return: unknown |
post_preview() X-Ref |
Save draft or manually autosave for showing preview. return: str URL to redirect to show the preview |
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |