fdavidsen
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Custom Size Not Being GeneratedGot it, thanks!
Forum: Developing with WordPress
In reply to: Custom Size Not Being Generatedinc/functions.php file simply where the wp_generate_attachment_metadata() located, I just put the importing code there.
Could you please provide the code to pull default images from an /images/ theme sub-folder? Just for the reference of how to pull images.
Forum: Developing with WordPress
In reply to: Custom Size Not Being GeneratedYes, uploading images through the media library works as expected. However, this behavior doesn’t match my need. I tried to upload images in this way because I’m doing starter content importing programmatically. I just don’t want the user to uploading the XML files. I’m not sure this is good or bad, but it match my users’ need.
I ended up loading my importing script that contain wp_generate_attachment_metadata() using the after_theme_setup hook.
function wing_file_loader() { require_once WING_THEME_PATH . 'inc/functions.php'; } add_action( 'after_setup_theme', 'wing_file_loader', 15 );
Again, I’m not sure if this is good or bad. What do you think?
Forum: Developing with WordPress
In reply to: Custom Size Not Being GeneratedHi bcworkz, thanks for replying. I put the add_image_size() on function.php and the wp_generate_attachment_metadata() somewhere in a static method (causing me need to require “wp-admin/includes/image.php”). Is that causing mine to not work? If it does, how to solve it?
Forum: Developing with WordPress
In reply to: Custom Size Not Being GeneratedI checked the available sizes with wp_get_registered_image_subsizes(), it returns without my custom size.
Forum: Plugins
In reply to: [Software License Manager] Hook to retrieve deleted domain nameHi, I have created the pull request. Thanks.
Forum: Plugins
In reply to: [Software License Manager] Hook to retrieve deleted domain nameI think the hook should return the information about the license id and deleted “registered domain”. Thanks in advance.
- This reply was modified 2 years, 6 months ago by fdavidsen.