add_action('plugins_loaded', 'initialize_custom_image_sizes');
plugins_loaded is fired off way before functions.php is included. Change that hook to init.
http://codex.wordpress.org/Plugin_API/Action_Reference#Actions_Run_During_a_Typical_Request
Related Posts:
- Disabling post images for not logged in users
- How can i change an image’s author?
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- How to change ID of an attachment in wp_posts and its related tables correctly?
- bulk change of image setting “link to” to “link to: image url “
- Converting Attachment to Images?
- Get the url of the full sized attachment image using post ID?
- Inserting HTML tag with ACF into shortcode
- Redirect to another page using contact form 7? [closed]
- Image change on hover
- Search by Attachment ID
- JSON API Plugin not showing Attachments id reused
- Add_image_size not generating correct size
- Elementor Pro display featured image on section -> style -> image using shortcode
- Get all image in media Gallery with alt/title?
- How to wrap image tag into div for post only?
- How to force regenerate thumbnails in WordPress posts?
- How to show post attachment image
- Building custom pages with a video player
- How to add a class to the attachment images
- Plugin update error message
- How to add classes to images based on their categories?
- Automatically Import Image into Posts from URLs on the Web?
- How to handel multiple checkbox field in the admin settings page with Settings API
- wp_insert_user – how to send verification email before logging in
- Is the WordPress HTTPS Plugin Still Safe To Use? [closed]
- Set a User as Author of all ‘New Posts’ posted
- Post source link plugin – small modification
- How do you auto-activate plugins from child themes
- Is there a plugin that allows a user of your site to get an email from you with an attachment?
- What is the function to get plugin base url in multisite?
- Code in theme functions.php faster than with a plugin?
- How to get custom field image url of specific size
- There’s some way to add a wrapper around posted images?
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- HELP: Integrating WP with raw PHP code once published button is hit
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Getting media library popup in custom plugin admin page
- Issue to get wp_get_attachment_image with cmb2
- Limit the number of plugins that can be installed in a WordPress installation
- How to get variables from fucntion.php to my plugin files
- Images not showing after changing wp-content folder name
- How to stop or remove an action being called inside a function of an extended class
- How to Delete all Unused photos Function
- Date calculations from 2 custom fields
- How to debug error message: Cannot modify header information
- How to enable specific plugin only based around shop manager role?
- Adding a new field to the address field type in gravity forms
- Load external images via proxy
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Image Manager Plugin [closed]
- Plugin is a widget, but I want to call it in the head, can I?
- Cannot get wpdb data (Error in a simple fuction) [closed]
- Adding Static Image to WooCommerce Content-Single-Product template
- Help with WP Business Directory Manager Plugin?
- Return multiple values in a shortcode attribute
- get specific value of a array | PHP
- Loading a plugin’s js file from functions.php
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- How to access OOP plugin function inside themes or other plugin
- Different registration form for different roles
- Looking for a photo management solution
- Can export gallery but can’t import it Wp all import
- Create a pdf from the entries in DB
- RSS feeds for specific topics
- add_rewrite_rule to load different page, without changing URL in browser
- Auto delete content in specific folder inside media library
- How do I add a medium to the WordPress database with my own plugin?
- Overriding a function in a WordPress plugin
- How to update an image attachment’s alt text from a custom field when saving a post?
- Display Multiple Photos as Featured Image when mouse moves on to it post
- Adding discount functionality to the cart
- Precheck fields when I add a new post
- what functions to use to resize images and create DB metadata for them after/during upload?
- Get Shortcode output to database for static post_content
- Use buddypress function outside of plugin
- WPML – Hook when language is switched (change user language)
- Use action, filter, or hook to append HTML to WordPress plugin function
- Change custom rewrite rule when permalink is updated/changed
- Save Post Permalink In .txt File
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- How To Add Code To WP Without Plugin or Functions
- Disqus comments count taking long to update
- plugin not hooking to my custom hook
- Populate select option with JSON file
- Home page letters
- Find all strings between an enclosing shortcode
- how to open image gallery in a post/page?
- Open image size links in a page instead of direct image link
- Determine if get_the_image has image on Get the image Plugin
- Trying to output a “Most visited blogs” list in wordpress multisite
- wordpress Search function is not working
- How should I force WordPress to give proper name for the uploading images?
- Want to show pop up image on home page every time when i refresh it [closed]
- PHP Creating a formula from mysql db values and db stored math operator
- Option value not getting updated until page refresh in WordPress
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode