How to create different media uploader frames / filter library depending on a custom action

You will have to create two different media modals that are fired depending on your click event. Here is some code from a recent project where I added these buttons to the tinyMCE visual editor: jQuery(document).ready(function($){ $(document).on(‘click’, ‘.mce-my_upload_button’, upload_image_tinymce); $(document).on(‘click’, ‘.mce-my_upload_pdf_button’, upload_pdf_tinymce); function upload_image_tinymce(e) { e.preventDefault(); var $input_field = $(‘.mce-my_input_image’); var custom_uploader = wp.media.frames.file_frame = … Read more

How to display the maximum upload size in a WordPress single site?

The answer actually lies on the same page where you inspected your modifications: /wp-admin/media-new.php. If you get to the /wp-admin/media-new.php file, you will get a function: <?php media_upload_form(); ?> And the function is located in /wp-admin/includes/media.php, where you will get the following line: $max_upload_size = wp_max_upload_size(); So the holly grail you are searching is: wp_max_upload_size(). … Read more

techhipbettruvabetnorabahisbahis forumuedueduedueduedusedueduseduedusedu