Use wp_handle_upload() to handle uploads yourself, without creating attachments or resizing.
The media_handle_upload() function actually creates an attachment post, and the resizing process happens when wp_generate_attachment_metadata gets called. If you don’t call that, then no resizing occurs.
Related Posts:
- How to query details of images in gallery that is attached to a post
- How do register_sidebar() and get_sidebar() work together?
- Why isn’t is_home() working correctly?
- wp_nav_menu() custom container and container_id
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- Can You Export Theme Settings From WordPress Multisite?
- Automatic image renaming based on title
- Automatically wrap post image in div
- Get the post attached to a image attachment
- Create a customizable child theme
- Is it ok to not a have child theme and just create a theme from scratch?
- sanitize attachment filename
- Importing media medium setting image gallery / image attachments
- WP Northwind for Theme Development?
- Add more then one site logo – custom-logo theme support
- How to add “Read More…” link in twentytwenty
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- How can I defer these JS files?
- Custom attachments styling in post view
- How to create left and right menu with logo center in a custom theme?
- How to add custom page attributes in WordPress?
- How do I change the markup only of a built-in widget?
- REQUIRED: Could not find wp_link_pages. See: wp_link_pages by Theme Checker
- problem in uploading attachment to custom directory
- Blog page problems
- Extend WordPress Core Classes in OOP Theme?
- User bar above logotipo?
- Attach File Funcion for Common people
- Transferring theme and imported post attachments
- how or where wordress collect unlogged user session
- How to create social Share Buttons Without Plugin
- Bootstrap slider not working
- Trying to customise 2011 Child Theme Background Colour
- Highly stylized pages
- Lightbox not showing image caption
- WordPress core jquery version file not loaded?
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Post thats in Two Categories, only want to display name for one
- why jquery is not loading in wordpress page?
- Is it possible to show related posts on WordPress attachment pages?
- Modifying posts based on category in TwentyTwentyTwo theme
- Custom Logo: why parameters are not working at all?
- In WordPress 3.x, I can’t access posts from all blogs in the network
- WordPress Install Issue, Receive Warnings But Successful Install
- I w’d like to know If there are simple solutions to integrate other CMSs to wordpress
- str_replace inside specific css files [closed]
- Shop page custom buttons which is visible to only administrator
- Applying WP-cli Search & Replace to Static SQL Dump File
- How to print Array values of custom Fields Meta?
- Change Successful password reset message
- Undefined variable: user_id in get_user_meta
- Is it possible to make wordpress LMS
- White letters in header
- Saving contact form 7 data into custom Table
- Get users based on month ACF datepicker field
- Creating a shortcode by pulling in a custom field from a plugin
- Divi: how to hide/show specific menu according current page?
- “woocommerce_form_field()” function having issues after latest woocommerce update [closed]
- What is the best way to modify Admin Panel on WordPress?
- How do you add a table to a site?
- add custom content to appearance/widgets screen
- buddypress remove username from autocomplete
- I tried to change my URL and ended up losing access to my site? I went into general settings and changed both WordPress URL and Site URL
- Is there another way to customize a parent template file besides adding the file to a child theme?
- Show title bar only on archives / hide it on all posts and pages
- How to customize shipping region/states on WooCommerce
- How do I modify the size of the text in my page titles?
- how to make a custom field readonly or disabled by user role?
- How to make wordpress use a non-wordpress users table?
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- Rename WooCommerce sorting dropdown options [closed]
- Change admin avatar only (without Gravatar or plugin)?
- How to start editing my site with WordPress?
- add_feed rewrite overwriting standard permalinks
- How do I list custom taxonomy terms with the links?
- How can style text like this in wordpress
- How to unpixelate logo?
- Custom post type’s posts are not showing anywere but in xml sitemap
- How to clean up the theme for production?
- Insert menu with a custom walker into page / post body using shortcode?
- Templates without a loop, best practice?
- Create a page that dynamically loads data
- Changing the the_author_posts_link() hover title
- Duplicated content with custom shortcode
- Customizer JS API get value of customizer field
- Change Notice of Password change email subject?
- Display a list of subcategories (from specific Category) a post belongs to
- Deleting my old WordPress site. – issues
- Implement a Walker with custom object rather than WordPress database object
- How I can directly add drop-down in my product on shop page as show in below image
- WordPress broken after domain name change
- Trigger Customizer Publish (save) Action
- Good way to customize admin CSS?
- Is there a possiblity to replace profile image gravatar with custom user images
- Edit value=”” of a button in child theme
- Add the site’s name as prefix when adding new users? Multisite
- How to create “custom page types” with different custom fields in them?
- WooCommerce custom billing fields on email address
- When should I not use WordPress? [closed]
- css media query question [closed]