WP_Font_Collection::get_sanitization_schema()wp-includes/fonts/class-wp-font-collection.php | Retrieves the font collection sanitization schema.
|
WP_Font_Collection::__construct()wp-includes/fonts/class-wp-font-collection.php | WP_Font_Collection constructor.
|
WP_REST_Font_Faces_Controller::prepare_item_for_database()wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php | Prepares a single font face post for creation.
|
WP_REST_Font_Families_Controller::prepare_item_for_database()wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php | Prepares a single font family post for create or update.
|
_register_remote_theme_patterns()wp-includes/block-patterns.php | Registers patterns from Pattern Directory provided by a theme’s theme.json file.
|
_load_remote_featured_patterns()wp-includes/block-patterns.php | Register Featured (category) patterns from wordpress.org/patterns.
|
_load_remote_block_patterns()wp-includes/block-patterns.php | Register Core’s official patterns from wordpress.org/patterns.
|
WP_REST_Attachments_Controller::insert_attachment()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Inserts the attachment post in the database. Does not update the attachment meta.
|
WP_Customize_Manager::import_theme_starter_content()wp-includes/class-wp-customize-manager.php | Imports theme starter content into the customized state.
|
WP_Customize_Manager::prepare_starter_content_attachments()wp-includes/class-wp-customize-manager.php | Prepares starter content attachments.
|
wp_update_custom_css_post()wp-includes/theme.php | Updates the custom_css post for a given theme.
|
wp_get_custom_css_post()wp-includes/theme.php | Fetches the custom_css post for a given theme.
|
WP_REST_Controller::sanitize_slug()wp-includes/rest-api/endpoints/class-wp-rest-controller.php | Sanitizes the slug value.
|
WP_Customize_Nav_Menus::insert_auto_draft_post()wp-includes/class-wp-customize-nav-menus.php | Adds a new auto-draft post.
|
WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus()wp-includes/customize/class-wp-customize-nav-menu-setting.php | Filters the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed.
|
WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menu_object()wp-includes/customize/class-wp-customize-nav-menu-setting.php | Filters the wp_get_nav_menu_object() result to supply the previewed menu object.
|
wp_install_maybe_enable_pretty_permalinks()wp-admin/includes/upgrade.php | Maybe enable pretty permalinks on installation.
|
WP_Plugins_List_Table::single_row()wp-admin/includes/class-wp-plugins-list-table.php | |
update_nag()wp-admin/includes/update.php | Returns core update notification message.
|
make_site_theme()wp-admin/includes/upgrade.php | Creates a site theme.
|
wp_install_defaults()wp-admin/includes/upgrade.php | Creates the initial content for a newly-installed site.
|
add_menu_page()wp-admin/includes/plugin.php | Adds a top-level menu page.
|
media_handle_upload()wp-admin/includes/media.php | Saves a file submitted from a POST request and create an attachment post for it.
|
media_handle_sideload()wp-admin/includes/media.php | Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload() .
|
get_sample_permalink()wp-admin/includes/post.php | Returns a sample permalink based on the post name.
|
_wp_ajax_add_hierarchical_term()wp-admin/includes/ajax-actions.php | Handles adding a hierarchical term via AJAX.
|
wp_ajax_add_link_category()wp-admin/includes/ajax-actions.php | Handles adding a link category via AJAX.
|
list_core_update()wp-admin/update-core.php | Lists available core updates.
|
sanitize_title_for_query()wp-includes/formatting.php | Sanitizes a title with the ‘query’ context.
|
register_widget_control()wp-includes/deprecated.php | Registers widget control callback for customizing options.
|
register_sidebar_widget()wp-includes/deprecated.php | Register widget for sidebar with backward compatibility.
|
get_category_by_path()wp-includes/category.php | Retrieves a category based on URL containing the category slug.
|
wp_update_term()wp-includes/taxonomy.php | Updates term based on arguments provided.
|
wp_insert_term()wp-includes/taxonomy.php | Adds a new term to the database.
|
term_exists()wp-includes/taxonomy.php | Determines whether a taxonomy term exists.
|
register_taxonomy()wp-includes/taxonomy.php | Creates or modifies a taxonomy object.
|
permalink_anchor()wp-includes/link-template.php | Displays the permalink anchor for the current post.
|
WP_Admin_Bar::add_node()wp-includes/class-wp-admin-bar.php | Adds a node to the menu.
|
wp_insert_user()wp-includes/user.php | Inserts a user into the database.
|
wp_insert_post()wp-includes/post.php | Inserts or update a post.
|
dynamic_sidebar()wp-includes/widgets.php | Display dynamic sidebar.
|
is_active_sidebar()wp-includes/widgets.php | Determines whether a sidebar contains widgets.
|
WordPress Titles
To create the file name portion of a URL the same way that WordPress does use this:
It should return a formatted value, the output would be this:
this-long-title-is-what-my-post-or-page-might-be
As was noted in the codex reference page for this function:
So
My Excellent Sentence
becomesmy-excellent-sentence
for example.This is because this function applies a filter of the same name to which WordPress adds
sanitize_title_with_dashes
by default.If title is Chinese, its not suitable as a HTML attributes.
Because the function will converts words to ASCII characters.It will be a disaster.
https://wp.example/%e9%80%99%e6%98%af%e5%ad%97%e4%b8%b2
, because that is what needs to be used inhref
attributes, and is what is transmitted to a web server in a request. However what web browsers will typically show you (in the address bar, when hovering over links, etc.) is the decoded equivalent, likehttps://wp.example/這是字串
. This means your URL complies with Internet standards, but also remains readable when actually used.