WPINC_post.php Notes - WordPress-Thinstall/wordpress-develop GitHub Wiki

interface PostFacade {
    function create_initial_post_types();
    function get_attached_file( $attachment_id, $unfiltered = false );
    function update_attached_file( $attachment_id, $file );
    function _wp_relative_upload_path( $path );
    function get_children( $args = '', $output = OBJECT );
    function get_extended( $post );
    function get_post( $post = null, $output = OBJECT, $filter = 'raw' );
    function get_post_ancestors( $post );
    function get_post_field( $field, $post = null, $context = 'display' );
    function get_post_mime_type( $ID = '' );
    function get_post_status( $ID = '' );
    function get_post_statuses();
    function get_page_statuses();
    function register_post_status( $post_status, $args = array() );
    function get_post_status_object( $post_status );
    function get_post_stati( $args = array(), $output = 'names', $operator = 'and' );
    function is_post_type_hierarchical( $post_type );
    function post_type_exists( $post_type );
    function get_post_type( $post = null );
    function get_post_type_object( $post_type );
    function get_post_types( $args = array(), $output = 'names', $operator = 'and' );
    function register_post_type( $post_type, $args = array() );
    function unregister_post_type( $post_type );
    function get_post_type_capabilities( $args );
    function _post_type_meta_capabilities( $capabilities = null );
    function get_post_type_labels( $post_type_object );
    function _get_custom_object_labels( $object, $nohier_vs_hier_defaults );
    function _add_post_type_submenus();
    function add_post_type_support( $post_type, $feature );
    function remove_post_type_support( $post_type, $feature );
    function get_all_post_type_supports( $post_type );
    function post_type_supports( $post_type, $feature );
    function get_post_types_by_support( $feature, $operator = 'and' );
    function set_post_type( $post_id = 0, $post_type = 'post' );
    function is_post_type_viewable( $post_type );
    function get_posts( $args = null );
    
    // Post Meta
    function add_post_meta( $post_id, $meta_key, $meta_value, $unique = false );
    function delete_post_meta( $post_id, $meta_key, $meta_value = '' );
    function get_post_meta( $post_id, $key = '', $single = false );
    function update_post_meta( $post_id, $meta_key, $meta_value, $prev_value = '' );
    function delete_post_meta_by_key( $post_meta_key );
    function get_post_custom( $post_id = 0 );
    function get_post_custom_keys( $post_id = 0 );
    function get_post_custom_values( $key = '', $post_id = 0 );
    function is_sticky( $post_id = 0 );
    function sanitize_post( $post, $context = 'display' );
    function sanitize_post_field( $field, $value, $post_id, $context = 'display' );
    function stick_post( $post_id );
    function unstick_post( $post_id );
    function _count_posts_cache_key( $type = 'post', $perm = '' );
    function wp_count_posts( $type = 'post', $perm = '' );
    function wp_count_attachments( $mime_type = '' );
    function get_post_mime_types();
    function wp_match_mime_types( $wildcard_mime_types, $real_mime_types );
    function wp_post_mime_type_where( $post_mime_types, $table_alias = '' );
    function wp_delete_post( $postid = 0, $force_delete = false );
    function _reset_front_page_settings_for_post( $post_id );
    function wp_trash_post( $post_id = 0 );
    function wp_untrash_post( $post_id = 0 );
    function wp_trash_post_comments( $post = null );
    function wp_untrash_post_comments( $post = null );
    function wp_get_post_categories( $post_id = 0, $args = array() );
    function wp_get_post_tags( $post_id = 0, $args = array() );
    function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array() );
    function wp_get_recent_posts( $args = array(), $output = ARRAY_A );
    function wp_insert_post( $postarr, $wp_error = false );
    function wp_update_post( $postarr = array(), $wp_error = false );
    function wp_publish_post( $post );
    function check_and_publish_future_post( $post_id );
    function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent );
    function _truncate_post_slug( $slug, $length = 200 );
    function wp_add_post_tags( $post_id = 0, $tags = '' );
    function wp_set_post_tags( $post_id = 0, $tags = '', $append = false );
    function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $append = false );
    function wp_set_post_categories( $post_ID = 0, $post_categories = array(), $append = false );
    function wp_transition_post_status( $new_status, $old_status, $post );
    function add_ping( $post_id, $uri );
    function get_enclosed( $post_id );
    function get_pung( $post_id );
    function get_to_ping( $post_id );
    function trackback_url_list( $tb_list, $post_id );
    function get_all_page_ids();
    function get_page( $page, $output = OBJECT, $filter = 'raw');
    function get_page_by_path( $page_path, $output = OBJECT, $post_type = 'page' );
    function get_page_by_title( $page_title, $output = OBJECT, $post_type = 'page' );
    function get_page_children( $page_id, $pages );
    function get_page_hierarchy( &$pages, $page_id = 0 );
    function _page_traverse_name( $page_id, &$children, &$result );
    function get_page_uri( $page = 0 );
    function get_pages( $args = array() );
    function is_local_attachment($url);
    function wp_insert_attachment( $args, $file = false, $parent = 0, $wp_error = false );
    function wp_delete_attachment( $post_id, $force_delete = false );
    function wp_get_attachment_metadata( $post_id = 0, $unfiltered = false );
    function wp_update_attachment_metadata( $post_id, $data );
    function wp_get_attachment_url( $post_id = 0 );
    function wp_get_attachment_caption( $post_id = 0 );
    function wp_get_attachment_thumb_file( $post_id = 0 );
    function wp_get_attachment_thumb_url( $post_id = 0 );
    function wp_attachment_is( $type, $post = null );
    function wp_attachment_is_image( $post = null );
    function wp_mime_type_icon( $mime = 0 );
    function wp_check_for_changed_slugs( $post_id, $post, $post_before );
    function get_private_posts_cap_sql( $post_type );
    function get_posts_by_author_sql( $post_type, $full = true, $post_author = null, $public_only = false );
    function get_lastpostdate( $timezone = 'server', $post_type = 'any' );
    function get_lastpostmodified( $timezone = 'server', $post_type = 'any' );
    function _get_last_post_time( $timezone, $field, $post_type = 'any' );
    function update_post_cache( &$posts );
    function clean_post_cache( $post );
    function update_post_caches( &$posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true );
    function update_postmeta_cache( $post_ids );
    function clean_attachment_cache( $id, $clean_terms = false );
    function _transition_post_status( $new_status, $old_status, $post );
    function _future_post_hook( $deprecated, $post );
    function _publish_post_hook( $post_id );
    function wp_get_post_parent_id( $post_ID );
    function wp_check_post_hierarchy_for_loops( $post_parent, $post_ID );
    function set_post_thumbnail( $post, $thumbnail_id );
    function delete_post_thumbnail( $post );
    function wp_delete_auto_drafts();
    function wp_queue_posts_for_term_meta_lazyload( $posts );
    function _update_term_count_on_transition_post_status( $new_status, $old_status, $post );
    function _prime_post_caches( $ids, $update_term_cache = true, $update_meta_cache = true );
    function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_ID = 0 );
    function wp_add_trashed_suffix_to_post_name_for_post( $post );
}