Overview

Classes

  • xu
  • Xu\Foundation\Foundation
  • Xu\Foundation\Jsonable
  • Xu\Model\Collection
  • Xu\Model\Model

Functions

  • xu
  • xu_add_option
  • xu_attachment_url_to_postid
  • xu_cache_delete
  • xu_cache_delete_group
  • xu_cache_get
  • xu_cache_key
  • xu_camel_case
  • xu_clean_attachment_cache
  • xu_clean_nav_menu_cache
  • xu_clean_post_cache
  • xu_contains
  • xu_convert_to_string
  • xu_current_attachment_url_to_postid
  • xu_current_url
  • xu_current_url_to_postid
  • xu_dashify
  • xu_delete_option
  • xu_delete_site_transient
  • xu_delete_transient
  • xu_doing_ajax
  • xu_ends_with
  • xu_get_class_name
  • xu_get_model
  • xu_get_option
  • xu_get_option_name
  • xu_get_option_post_id
  • xu_get_posts
  • xu_get_site_transient
  • xu_get_top_parent_post
  • xu_get_top_parent_post_type
  • xu_get_top_parent_post_type_object
  • xu_get_transient
  • xu_is_empty
  • xu_is_http_method
  • xu_is_json
  • xu_is_post_type
  • xu_is_wp
  • xu_is_xml
  • xu_post_exists
  • xu_register_large_option_post_type
  • xu_snake_case
  • xu_starts_with
  • xu_strip_spaces
  • xu_studly_case
  • xu_update_option
  • xu_url_to_postid
  • xu_valid_personnummer
  • xu_wp_get_attachment_image
  • xu_wp_get_attachment_image_sizes
  • xu_wp_get_attachment_image_src
  • xu_wp_get_attachment_image_srcset
  • xu_wp_get_attachment_url
  • xu_wp_nav_menu
  • Overview
  • Class

Overview

Classes summary
xu
Xu\Foundation\Foundation
Xu\Foundation\Jsonable
Xu\Model\Collection
Xu\Model\Model
Functions summary
xu Get a component or return the xu instance.
xu_add_option Add large option value to hidden post type.
xu_attachment_url_to_postid Cached version of attachment_url_to_postid.
xu_cache_delete Delete value from cache.
xu_cache_delete_group Removes cache contents for a given group.
xu_cache_get

Get value from given functions cache or from function if function cache don't exists.

xu_cache_key Get xu cache key.
xu_camel_case Convert a value to camel case.
xu_clean_attachment_cache Clean attachment cache.
xu_clean_nav_menu_cache Clean nav menu cache.
xu_clean_post_cache Clean post cache.
xu_contains Determine if a given string contains a given substring.
xu_convert_to_string Try convert to string if is possible else return empty string.
xu_current_attachment_url_to_postid Get attachment post id from current url.
xu_current_url Get current url.
xu_current_url_to_postid Get post id from current url.
xu_dashify Replacing whitespace and underscore with a dash.
xu_delete_option Delete option value from to hidden post type.
xu_delete_site_transient Delete site transient by key.
xu_delete_transient Delete transient by key.
xu_doing_ajax Check if WordPress is doing ajax or not.
xu_ends_with Determine if a given string ends with a given substring.
xu_get_class_name Get namespace name and/or class name from file.
xu_get_model Get a model.
xu_get_option Get option value from to hidden post type or default value.
xu_get_option_name Get option name.
xu_get_option_post_id Get option post id.
xu_get_posts Cached version of get_posts.
xu_get_site_transient Get/Set site transient.
xu_get_top_parent_post Get top-most parent post.
xu_get_top_parent_post_type Get top-most parent post type.
xu_get_top_parent_post_type_object Get top-most parent post type object.
xu_get_transient Get/Set transient.
xu_is_empty

Check if the given object is empty or not. Values like "0", 0 and false should not return true.

xu_is_http_method Check if the request method is the same as the given method.
xu_is_json Check if the given string is a JSON string or not.
xu_is_post_type Is the current page the given $post_type?
xu_is_wp Check if WordPress is the given version.
xu_is_xml Check if the given string is XML or not.
xu_post_exists Determines if a post exist or not.
xu_register_large_option_post_type Register xu_large_option hidden post type.
xu_snake_case Convert a string to snake case.
xu_starts_with Determine if a given string starts with a given substring.
xu_strip_spaces Strip spaces from string.
xu_studly_case Convert a value to studly caps case.
xu_update_option Update or add option value to hidden post type.
xu_url_to_postid Cached version of url_to_post_id.
xu_valid_personnummer Validate Swedish personal identify numbers.
xu_wp_get_attachment_image Cached version of wp_get_attachment_image.
xu_wp_get_attachment_image_sizes Cached version of wp_get_attachment_image_sizes.
xu_wp_get_attachment_image_src Cached version of wp_get_attachment_image_src.
xu_wp_get_attachment_image_srcset Cached version of wp_get_attachment_image_srcset.
xu_wp_get_attachment_url Cached version of wp_get_attachment_url.
xu_wp_nav_menu Cached version of wp_nav_menu.
API documentation generated by ApiGen