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
- How can I configure Docker for developing and deploying a custom theme?
- Prevent WordPress from automatically installing a new theme each year
- Can we use one WordPress installation for multiple databases, domains and content directories
- How to Add Customizer Setting in Child Theme
- When adding a custom REST endpoint, where do you put the endpoint function, and where do you put the function registration call?
- WordPress objects class reference
- Customizing gallery shortcode in 3.5
- How to filter get_avatar?
- Multiple content areas per page
- CSS rules that the theme gets from a function
- How to rotate the header image per day?
- A Simple CRM Plugin for WordPress? [closed]
- Feature Survey – What would you want in a resume theme?
- Hide page title in WordPress 3.0
- How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1
- WooCommerce Checkout page customization [closed]
- Adding extra info via GET while registeration in wordpress
- Custom php file in wordpress
- Prevent WordPress from loading comments
- enqueue script on custom post type archive page
- How to translate month names in “Archives”
- Retrieve and display data from custom db table in admin area?
- How should I store global information such as a phone number so that it is editable through the CMS?
- Virtual Pages plugins
- Display tags with a twist
- How to add another page in appearance tab of admin panel?
- WordPress change author email notify message?
- What’s the easiest way to periodically (automatically) read static Markdown content into a WP page?
- How can I add data to a custom column in the Users section of the wordpress backend?
- Last post is not showing up
- Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?
- how to flush custom author rewrite rule
- Volume mounts when setting up WordPress with docker [closed]
- Version control for both Vagrant config and themes being developed [closed]
- Updating Widget options in custom install.php
- Problem with using wp-load.php outside of WordPress
- How to remove padding and margin between divi rows? [closed]
- Renaming wp_content problem
- Include user defined styles without including wp-load
- Is there a way to rename “themes” directory name?
- WordPress not working on localhost
- Unable to display custom fields on WooCommerce product pages
- Preserve custom URL parameter after saving post
- add JS to multiple plugin admin pages
- Query posts by category AND custom field, then ORDERBY another custom field – help!
- Warning: Creating default object… when altering Customize panels
- Follow me for WordPress blogs (multi-authors)
- Pagination Issues using WP_Paginate Plugin
- adding multiple custom columns to users.php
- window resizing problem
- WordPress customizer Preview not loading
- custom theme ,add media not showing images in media library
- Get Image from Media Library with the Title
- Color swatches on category page? [closed]
- Allow a Widget to be used one time only?
- Customizer: save setting/control content to post/page
- Best practice – pages – ACF or inline coding
- User can not login
- wpdb custom tables without plugin