WP Functions
Below you will find all the functions in the WordPress Functions Reference as coda clips, ready to use. You may also add a prefix and a suffix to the clips, to better suit your needs. To add a placeholder, please use the shortcode [ph].
Customize your Coda Clip
Use the shortcode [ph], to add a placeholder to your snippet.
Post, Page, Attachment and Bookmarks Functions
Posts
- <?php get_children(); ?>
- <?php get_extended(); ?>
- <?php get_next_post(); ?>
- <?php get_post(); ?>
- <?php get_post_ancestors(); ?>
- <?php get_post_mime_type(); ?>
- <?php get_post_status(); ?>
- <?php get_post_type(); ?>
- <?php get_previous_post(); ?>
- <?php get_posts(); ?>
- <?php is_post(); ?>
- <?php is_single(); ?>
- <?php is_sticky(); ?>
- <?php register_post_type(); ?>
- <?php wp_get_recent_posts(); ?>
- <?php wp_get_single_post(); ?>
Post insertion/removal
- <?php wp_delete_post(); ?>
- <?php wp_insert_post(); ?>
- <?php wp_publish_post(); ?>
- <?php wp_update_post(); ?>
Pages
- <?php get_all_page_ids(); ?>
- <?php get_page(); ?>
- <?php get_page_link(); ?>
- <?php get_page_by_path(); ?>
- <?php get_page_by_title(); ?>
- <?php get_page_children(); ?>
- <?php get_page_hierarchy(); ?>
- <?php get_page_uri(); ?>
- <?php get_pages(); ?>
- <?php is_page(); ?>
- <?php page_uri_index(); ?>
- <?php wp_list_pages(); ?>
Custom field (postmeta)
- <?php add_post_meta(); ?>
- <?php delete_post_meta(); ?>
- <?php get_post_custom(); ?>
- <?php get_post_custom_keys(); ?>
- <?php get_post_custom_values(); ?>
- <?php get_post_meta(); ?>
- <?php update_post_meta(); ?>
Attachments
- <?php get_attached_file(); ?>
- <?php is_attachment(); ?>
- <?php is_local_attachment(); ?>
- <?php update_attached_file(); ?>
- <?php wp_attachment_is_image(); ?>
- <?php wp_insert_attachment(); ?>
- <?php wp_delete_attachment(); ?>
- <?php wp_get_attachment_image(); ?>
- <?php wp_get_attachment_image_src(); ?>
- <?php wp_get_attachment_metadata(); ?>
- <?php wp_get_attachment_thumb_file(); ?>
- <?php wp_get_attachment_thumb_url(); ?>
- <?php wp_get_attachment_url(); ?>
- <?php wp_check_for_changed_slugs(); ?>
- <?php wp_count_posts(); ?>
- <?php wp_mime_type_icon(); ?>
- <?php wp_update_attachment_metadata(); ?>
Bookmarks
Others
Category, Tag and Taxonomy Functions
Categories
- <?php cat_is_ancestor_of(); ?>
- <?php get_all_category_ids(); ?>
- <?php get_cat_ID(); ?>
- <?php get_cat_name(); ?>
- <?php get_categories(); ?>
- <?php get_category(); ?>
- <?php get_category_by_path(); ?>
- <?php get_category_by_slug(); ?>
- <?php get_category_link(); ?>
- <?php get_category_parents(); ?>
- <?php get_the_category(); ?>
- <?php in_category(); ?>
- <?php is_category(); ?>
- <?php wp_list_categories(); ?>
Category Creation
Tags
- <?php get_tag(); ?>
- <?php get_tag_link(); ?>
- <?php get_tags(); ?>
- <?php get_the_tag_list(); ?>
- <?php get_the_tags(); ?>
- <?php is_tag(); ?>
Taxonomy
- <?php get_term(); ?>
- <?php get_the_term_list(); ?>
- <?php get_term_by(); ?>
- <?php get_term_children(); ?>
- <?php get_terms(); ?>
- <?php is_taxonomy(); ?>
- <?php is_taxonomy_hierarchical(); ?>
- <?php is_term(); ?>
- <?php register_taxonomy(); ?>
- <?php register_taxonomy_for_object_type(); ?>
- <?php wp_get_object_terms(); ?>
- <?php wp_insert_term(); ?>
- <?php wp_update_term(); ?>
- <?php wp_delete_term(); ?>
User and Author Functions
Users and Authors
- <?php auth_redirect(); ?>
- <?php email_exists(); ?>
- <?php get_currentuserinfo(); ?>
- <?php get_profile(); ?>
- <?php get_userdata(); ?>
- <?php get_userdatabylogin(); ?>
- <?php get_usernumposts(); ?>
- <?php set_current_user(); ?>
- <?php user_pass_ok(); ?>
- <?php username_exists(); ?>
- <?php validate_username(); ?>
- <?php wp_get_current_user(); ?>
- <?php wp_set_current_user(); ?>
User meta
User insertion/removal
- <?php wp_create_user(); ?>
- <?php wp_delete_user(); ?>
- <?php wp_insert_user(); ?>
- <?php wp_update_user(); ?>
Login / Logout
Feed Functions
- <?php bloginfo_rss(); ?>
- <?php comment_author_rss(); ?>
- <?php comment_link(); ?>
- <?php comment_text_rss(); ?>
- <?php do_feed(); ?>
- <?php do_feed_atom(); ?>
- <?php do_feed_rdf(); ?>
- <?php do_feed_rss(); ?>
- <?php do_feed_rss2(); ?>
- <?php fetch_rss(); ?>
- <?php get_author_feed_link(); ?>
- <?php get_bloginfo_rss(); ?>
- <?php get_category_feed_link(); ?>
- <?php get_comment_link(); ?>
- <?php get_comment_author_rss(); ?>
- <?php get_post_comments_feed_link(); ?>
- <?php get_rss(); ?>
- <?php get_search_comments_feed_link(); ?>
- <?php get_search_feed_link(); ?>
- <?php get_the_category_rss(); ?>
- <?php get_the_title_rss(); ?>
- <?php permalink_single_rss(); ?>
- <?php post_comments_feed_link(); ?>
- <?php rss_enclosure(); ?>
- <?php the_title_rss(); ?>
- <?php the_category_rss(); ?>
- <?php the_content_rss(); ?>
- <?php the_excerpt_rss(); ?>
- <?php wp_rss(); ?>
Comment, Ping, and Trackback Functions
- <?php add_ping(); ?>
- <?php check_comment(); ?>
- <?php discover_pingback_server_uri(); ?>
- <?php do_all_pings(); ?>
- <?php do_enclose(); ?>
- <?php do_trackbacks(); ?>
- <?php generic_ping(); ?>
- <?php get_approved_comments(); ?>
- <?php get_avatar(); ?>
- <?php get_comment(); ?>
- <?php get_comments(); ?>
- <?php get_enclosed(); ?>
- <?php get_lastcommentmodified(); ?>
- <?php get_pung(); ?>
- <?php get_to_ping(); ?>
- <?php next_comments_link(); ?>
- <?php paginate_comments_links(); ?>
- <?php pingback(); ?>
- <?php previous_comments_link(); ?>
- <?php privacy_ping_filter(); ?>
- <?php sanitize_comment_cookies(); ?>
- <?php trackback(); ?>
- <?php trackback_url_list(); ?>
- <?php weblog_ping(); ?>
- <?php wp_allow_comment(); ?>
- <?php wp_delete_comment(); ?>
- <?php wp_filter_comment(); ?>
- <?php wp_get_comment_status(); ?>
- <?php wp_get_current_commenter(); ?>
- <?php wp_insert_comment(); ?>
- <?php wp_new_comment(); ?>
- <?php wp_set_comment_status(); ?>
- <?php wp_throttle_comment_flood(); ?>
- <?php wp_update_comment(); ?>
- <?php wp_update_comment_count(); ?>
Action, Filter, and Plugin Functions
Filters
Actions
- <?php add_action(); ?>
- <?php did_action(); ?>
- <?php do_action(); ?>
- <?php do_action_ref_array(); ?>
- <?php remove_action(); ?>
Plugins
- <?php plugin_basename(); ?>
- <?php register_activation_hook(); ?>
- <?php register_deactivation_hook(); ?>
- <?php register_setting(); ?>
- <?php settings_fields(); ?>
- <?php unregister_setting(); ?>
Shortcodes
Theme-Related Functions
Include functions
- <?php comments_template(); ?>
- <?php get_footer(); ?>
- <?php get_header(); ?>
- <?php get_sidebar(); ?>
- <?php get_search_form(); ?>
Other functions
- <?php add_custom_image_header(); ?>
- <?php get_404_template(); ?>
- <?php get_archive_template(); ?>
- <?php get_attachment_template(); ?>
- <?php get_author_template(); ?>
- <?php get_category_template(); ?>
- <?php get_comments_popup_template(); ?>
- <?php get_current_theme(); ?>
- <?php get_date_template(); ?>
- <?php get_header_image(); ?>
- <?php get_header_textcolor(); ?>
- <?php get_home_template(); ?>
- <?php get_locale_stylesheet_uri(); ?>
- <?php get_page_template(); ?>
- <?php get_paged_template(); ?>
- <?php get_query_template(); ?>
- <?php get_search_template(); ?>
- <?php get_single_template(); ?>
- <?php get_stylesheet(); ?>
- <?php get_stylesheet_directory(); ?>
- <?php get_stylesheet_directory_uri(); ?>
- <?php get_stylesheet_uri(); ?>
- <?php get_template(); ?>
- <?php get_template_directory(); ?>
- <?php get_template_directory_uri(); ?>
- <?php get_theme(); ?>
- <?php get_theme_data(); ?>
- <?php get_theme_mod(); ?>
- <?php get_theme_root(); ?>
- <?php get_theme_root_uri(); ?>
- <?php get_themes(); ?>
- <?php header_image(); ?>
- <?php load_template(); ?>
- <?php locale_stylesheet(); ?>
- <?php preview_theme(); ?>
- <?php preview_theme_ob_filter(); ?>
- <?php preview_theme_ob_filter_callback(); ?>
- <?php set_theme_mod(); ?>
- <?php switch_theme(); ?>
- <?php validate_current_theme(); ?>
Formatting Functions
- <?php add_magic_quotes(); ?>
- <?php addslashes_gpc(); ?>
- <?php antispambot(); ?>
- <?php attribute_escape(); ?>
- <?php backslashit(); ?>
- <?php balanceTags(); ?>
- <?php clean_pre(); ?>
- <?php clean_url(); ?>
- <?php convert_chars(); ?>
- <?php convert_smilies(); ?>
- <?php ent2ncr(); ?>
- <?php esc_attr(); ?>
- <?php force_balance_tags(); ?>
- <?php format_to_edit(); ?>
- <?php format_to_post(); ?>
- <?php funky_javascript_fix(); ?>
- <?php htmlentities2(); ?>
- <?php is_email(); ?>
- <?php js_escape(); ?>
- <?php make_clickable(); ?>
- <?php popuplinks(); ?>
- <?php remove_accents(); ?>
- <?php sanitize_email(); ?>
- <?php sanitize_file_name(); ?>
- <?php sanitize_user(); ?>
- <?php sanitize_title(); ?>
- <?php sanitize_title_with_dashes(); ?>
- <?php seems_utf8(); ?>
- <?php stripslashes_deep(); ?>
- <?php trailingslashit(); ?>
- <?php untrailingslashit(); ?>
- <?php utf8_uri_encode(); ?>
- <?php wpautop(); ?>
- <?php wptexturize(); ?>
- <?php wp_filter_kses(); ?>
- <?php wp_filter_post_kses(); ?>
- <?php wp_filter_nohtml_kses(); ?>
- <?php wp_iso_descrambler(); ?>
- <?php wp_kses(); ?>
- <?php wp_kses_array_lc(); ?>
- <?php wp_kses_attr(); ?>
- <?php wp_kses_bad_protocol(); ?>
- <?php wp_kses_bad_protocol_once(); ?>
- <?php wp_kses_bad_protocol_once2(); ?>
- <?php wp_kses_check_attr_val(); ?>
- <?php wp_kses_decode_entities(); ?>
- <?php wp_kses_hair(); ?>
- <?php wp_kses_hook(); ?>
- <?php wp_kses_html_error(); ?>
- <?php wp_kses_js_entities(); ?>
- <?php wp_kses_no_null(); ?>
- <?php wp_kses_normalize_entities(); ?>
- <?php wp_kses_normalize_entities2(); ?>
- <?php wp_kses_split(); ?>
- <?php wp_kses_split2(); ?>
- <?php wp_kses_stripslashes(); ?>
- <?php wp_kses_version(); ?>
- <?php wp_make_link_relative(); ?>
- <?php wp_rel_nofollow(); ?>
- <?php wp_richedit_pre(); ?>
- <?php wp_specialchars(); ?>
- <?php zeroise(); ?>
Miscellaneous Functions
Time/Date Functions
- <?php current_time(); ?>
- <?php date_i18n(); ?>
- <?php get_calendar(); ?>
- <?php get_date_from_gmt(); ?>
- <?php get_lastpostdate(); ?>
- <?php get_lastpostmodified(); ?>
- <?php get_day_link(); ?>
- <?php get_gmt_from_date(); ?>
- <?php get_month_link(); ?>
- <?php get_the_time(); ?>
- <?php get_weekstartend(); ?>
- <?php get_year_link(); ?>
- <?php human_time_diff(); ?>
- <?php is_new_day(); ?>
- <?php iso8601_timezone_to_offset(); ?>
- <?php iso8601_to_datetime(); ?>
- <?php mysql2date(); ?>
Serialization
- <?php is_serialized(); ?>
- <?php is_serialized_string(); ?>
- <?php maybe_serialize(); ?>
- <?php maybe_unserialize(); ?>
Options
- <?php add_option(); ?>
- <?php delete_option(); ?>
- <?php form_option(); ?>
- <?php get_alloptions(); ?>
- <?php get_user_option(); ?>
- <?php get_option(); ?>
- <?php update_option(); ?>
- <?php update_user_option(); ?>
XMLRPC
- <?php xmlrpc_getpostcategory(); ?>
- <?php xmlrpc_getposttitle(); ?>
- <?php xmlrpc_removepostdata(); ?>
- <?php user_pass_ok(); ?>
Localization
- <?php __(); ?>
- <?php _e(); ?>
- <?php _ngettext(); ?>
- <?php esc_attr_e(); ?>
- <?php get_locale(); ?>
- <?php load_default_textdomain(); ?>
- <?php load_plugin_textdomain(); ?>
- <?php load_textdomain(); ?>
- <?php load_theme_textdomain(); ?>
Cron (Scheduling)
- <?php spawn_cron(); ?>
- <?php wp_clear_scheduled_hook(); ?>
- <?php wp_cron(); ?>
- <?php wp_get_schedule(); ?>
- <?php wp_get_schedules(); ?>
- <?php wp_next_scheduled(); ?>
- <?php wp_reschedule_event(); ?>
- <?php wp_schedule_event(); ?>
- <?php wp_schedule_single_event(); ?>
- <?php wp_unschedule_event(); ?>
Miscellaneous
- <?php add_query_arg(); ?>
- <?php bool_from_yn(); ?>
- <?php cache_javascript_headers(); ?>
- <?php check_admin_referer(); ?>
- <?php check_ajax_referer(); ?>
- <?php do_robots(); ?>
- <?php get_bloginfo(); ?>
- <?php get_num_queries(); ?>
- <?php is_blog_installed(); ?>
- <?php make_url_footnote(); ?>
- <?php nocache_headers(); ?>
- <?php remove_query_arg(); ?>
- <?php status_header(); ?>
- <?php wp(); ?>
- <?php wp_check_filetype(); ?>
- <?php wp_clearcookie(); ?>
- <?php wp_create_nonce(); ?>
- <?php wp_die(); ?>
- <?php wp_explain_nonce(); ?>
- <?php wp_get_cookie_login(); ?>
- <?php wp_get_http_headers(); ?>
- <?php wp_get_original_referer(); ?>
- <?php wp_get_referer(); ?>
- <?php wp_hash(); ?>
- <?php wp_mail(); ?>
- <?php wp_mkdir_p(); ?>
- <?php wp_new_user_notification(); ?>
- <?php wp_nonce_ays(); ?>
- <?php wp_nonce_field(); ?>
- <?php wp_nonce_url(); ?>
- <?php wp_notify_moderator(); ?>
- <?php wp_notify_postauthor(); ?>
- <?php wp_original_referer_field(); ?>
- <?php wp_redirect(); ?>
- <?php wp_referer_field(); ?>
- <?php wp_remote_fopen(); ?>
- <?php wp_salt(); ?>
- <?php wp_setcookie(); ?>
- <?php wp_upload_bits(); ?>
- <?php wp_upload_dir(); ?>
- <?php wp_verify_nonce(); ?>