Notice: Undefined variable: string in /home/u665484253/domains/wpcodekit.com/public_html/wp-content/themes/twentytwenty-child/functions.php on line 61
Add new file type to upload in wordpress
function add_file_types_to_uploads($file_types){ $new_filetypes = array(); $new_filetypes['svg'] = 'image/svg+xml'; $file_types = array_merge($file_types, $new_filetypes ); return $file_types; } add_filter('upload_mimes', 'add_file_types_to_uploads');
Read More Posts
- How to get timstamp from time in php?
- How to redirect user on different page accounding to user (Customer, editor, admin, subscriber and etc) on wordpress dashboard?
- How to use search ajax in wordpress?
- if jQuery contain and match value then replace with another value on load in jQuery?
- How to insert data from dynamically created add/remove fields in wordpress $wpdb?