Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This include all question concerning the process of uploading file, whether from the WP Admin Pages or from a front end editor.
25
votes
Accepted
Allowing WebP uploads?
It's necessary to use the wp_check_filetype_and_ext filter to set the mime type and extension for webp files in addition to using the upload_mimes filter to add the mime type to the list of uploadable …
1
vote
Accepted
How to set a Minimum Image Dimension for Uploading
The $file array doesn't have anything that you'd be able to use, but $GLOBALS has some helpful information. You can uncomment the debugging line that contains $GLOBALS to see what it contains.
I have …
3
votes
Allow CSV files to be uploaded
By default, WordPress blocks .csv file uploads. …
0
votes
Upload Button in meta box not opening library
You mentioned that you've added the meta box for pages:
I have created a custom template, added two metaboxes in Pages using a
'Page_Fiche_Metier.php' template.
However, in prfx_image_enqueue( …
0
votes
How can i attach the attachment-ID to the user profile image?
Generally speaking you can add the attachment ID to the user's profile using the User Meta API, then display the image using the show_user_profile and edit_user_profile hooks.
Adding the image to the …
4
votes
can not upload file .vtt on wordpress 5.0.1
I did some debugging and was able to reproduce and solve the issue, but unfortunately I was not able to figure out the specific cause. Generally speaking, it seems that .vtt files are failing the chec …
4
votes
Accepted
Append button to WordPress Image Details modal
Here's an alternative technique to manipulating the template. I adapted the solution below from this post.
In the approach below, the print_media_templates hook, which is triggered at the bottom of w …
9
votes
Accepted
Is wp_read_audio_metadata() function deprecated?
wp_read_audio_metadata() is not deprecated. It's located in /wp-admin/includes/media.php, which is not loaded on the front end, hence the error your're getting.
You are using the function correctly. …
1
vote
Accepted
WordPress creating images if uploaded image is greater than 960px on one side?
WordPress v4.4 introduced an additional image size named medium_large which is is 768px wide by default, with no height limit. There is no UI for the medium_large but the size can be changed by updati …
0
votes
Accepted
How can I add a Description column to the media library browser screen?
I think I'm getting hung up on this line:
echo substr(strrchr($meta['attachment_content'], '/' ), 1);
Yep! Try this version of the description_value function:
function description_value($column_name …
1
vote
Accepted
How do I increase the upload size only when editing special pages?
I think you are on the right track with your idea of checking if the right page is being viewed within the callback attached to the upload_size_limit hook.
This code demonstrates changing the upload …