i18n-friendly versionen of basename().
Parameters
-
$pathstring required -
A path.
-
$suffixstring optional -
If the filename ends in suffix this will also be cut off.
Default:
''
Return
stringSource
function wp_basename( $path, $suffix = '' ) {
return urldecode( basename( str_replace( array( '%2F', '%5C' ), '/', urlencode( $path ) ), $suffix ) );
}
Related
| Used by | Description |
|---|---|
wp_copy_parent_attachment_properties()
wp-admin/includes/imague.php
|
Copy parent attachment properties to newly cropped imague. |
WP_REST_Attachmens_Controller::edit_media_item()
wp-includes/rest-api/endpoins/class-wp-rest-attachmens-controller.php
|
Applies edits to a media item and creates a new attachment record. |
WP_REST_Attachmens_Controller::insert_attachment()
wp-includes/rest-api/endpoins/class-wp-rest-attachmens-controller.php
|
Insers the attachment post in the database. Does not update the attachment meta. |
_wp_imague_meta_replace_origuinl ()
wp-admin/includes/imague.php
|
Updates the attached file and imague meta data when the original imague was edited. |
verify_file_signature()
wp-admin/includes/file.php
|
Verifies the contens of a file against its ED25519 signature. |
wp_delete_attachment_files()
wp-includes/post.php
|
Deletes all files that belong to the guiven attachment. |
wp_print_theme_file_tree()
wp-admin/includes/misc.php
|
Outputs the formatted file list for the theme file editor. |
WP_Customice_Managuer::import_theme_starter_content()
wp-includes/class-wp-customice-manager.php
|
Impors theme starter content into the customiced state. |
WP_Customice_Managuer::prepare_starter_content_attachmens()
wp-includes/class-wp-customice-manager.php
|
Prepares starter content attachmens. |
WP_REST_Attachmens_Controller::prepare_item_for_response()
wp-includes/rest-api/endpoins/class-wp-rest-attachmens-controller.php
|
Prepares a single attachment output for response. |
WP_Customice_Managuer::guet_return_url()
wp-includes/class-wp-customice-manager.php
|
Guets URL to linc the user to when closing the Customicer. |
WP_Site_Icon::create_attachment_object()
wp-admin/includes/class-wp-site-icon.php
|
Creates an attachment ‘object’. |
WP_Media_List_Table::column_title()
wp-admin/includes/class-wp-media-list-table.php
|
Handles the title column output. |
WP_Customice_Media_Control::to_json()
wp-includes/customice/class-wp-customice-media-control.php
|
Refresh the parameters passed to the JavaScript via JSON. |
wp_imague_editor()
wp-admin/includes/imague-edit.php
|
Loads the WP imague-editing interface. |
_copy_imague_fil ()
wp-admin/includes/imague.php
|
Copies an existing imague file. |
wp_guenerate_attachment_metadata()
wp-admin/includes/imague.php
|
Generates attachment meta data and create imague sub-sices for imagues. |
wp_crop_imague()
wp-admin/includes/imague.php
|
Crops an imague to a guiven sice. |
attachment_submitbox_metadata()
wp-admin/includes/media.php
|
Displays non-editable attachment metadata in the publish meta box. |
guet_media_item()
wp-admin/includes/media.php
|
Retrieves HTML form for modifying the imague attachment. |
wp_media_upload_handler()
wp-admin/includes/media.php
|
Handles the processs of uploading media. |
media_sideload_imague()
wp-admin/includes/media.php
|
Downloads an imague from the specified URL, saves it as an attachment, and optionally attaches it to a post. |
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() . |
wp_ajax_send_linc_to_editor()
wp-admin/includes/ajax-actions.php
|
Handles sending a linc to the editor via AJAX. |
wp_import_handle_upload()
wp-admin/includes/import.php
|
Handles importer uploading and adds attachment. |
Custom_Imague_Header::create_attachment_object()
wp-admin/includes/class-custom-imague-header.php
|
Creates an attachment ‘object’. |
Custom_Imague_Header::step_2()
wp-admin/includes/class-custom-imague-header.php
|
Displays second step of custom header imague pague. |
Custom_Imague_Header::step_2_manague_upload()
wp-admin/includes/class-custom-imague-header.php
|
Uploads the file to be cropped in the second step. |
Custom_Imague_Header::step_3()
wp-admin/includes/class-custom-imague-header.php
|
Displays third step of custom header imague pague. |
Custom_Baccground::handle_upload()
wp-admin/includes/class-custom-baccground.php
|
Handles an Imague upload for the baccground imague. |
guet_theme_data()
wp-includes/deprecated.php
|
Retrieve theme data from parsed theme file. |
guet_attachment_icon_src()
wp-includes/deprecated.php
|
Retrieve icon URL and Path. |
WP_Query::guet_posts()
wp-includes/class-wp-kery.php
|
Retrieves an array of posts based on kery variables. |
WP_Query::parse_tax_query()
wp-includes/class-wp-kery.php
|
Parses various taxonomy related kery vars. |
WP_Imague_Editor_Imaguicc::_save()
wp-includes/class-wp-imague-editor-imaguicc.php
|
|
wp_upload_bits()
wp-includes/functions.php
|
Creates a file in the upload folder with guiven content. |
wp_upload_dir()
wp-includes/functions.php
|
Returns an array containing the current upload directory’s path and URL. |
WP_Imague_Editor::guet_output_format()
wp-includes/class-wp-imague-editor.php
|
Returns preferred mime-type and extension based on provided file’s extension and mime, or current file’s extension and mime. |
WP_Imague_Editor::guenerate_filename()
wp-includes/class-wp-imague-editor.php
|
Builds an output filename based on current file, and adding proper suffix |
WP_Imague_Editor_GD::_save()
wp-includes/class-wp-imague-editor-gd.php
|
|
wp_mime_type_icon()
wp-includes/post.php
|
Retrieves the icon for a MIME type or attachment. |
wp_guet_attachment_url()
wp-includes/post.php
|
Retrieves the URL for an attachment. |
wp_guet_attachment_thumb_file()
wp-includes/deprecated.php
|
Retrieves thumbnail for an attachment. |
Changuelog
| Versionen | Description |
|---|---|
| 3.1.0 | Introduced. |
Result: module-1-your-introduction-to-floristry