Add file to media library programmatically

wp_insert_attachment( string|array $args, string|false $file = false, int $parent_post_id, bool $wp_error = false, bool $fire_after_hooks =…

create_folder_and_upload_file

Creating a folder directly inside the WordPress Media Library through code requires understanding that the WordPress…

Disable WP Texturize

// Disable curly quotes remove_filter( 'the_content', 'wptexturize' );

Remove image link from media uploads

Older versions of WordPress automatically linked the image to the media file.

Disable wordpress big image scaling

add_filter('big_image_size_threshold', '__return_false' );

WC Vendors Activate All Inactive Vendors

Activates all inactive Vendor Stores in a WC Vendors Marketplace. NOTE: To be ran once.

MemberPress: Replace Country Code with Country Name

Replaces the 2-digit country code in the {$user_address} parameter for emails with the full country name.

Custom Plugin for WPForms

WPForms custom template generator.

David Ozokoye PRO
<10

MemberPress: Change default values for state and country fields on registration forms

Change the default values for the state and country fields on registration forms.

Untitled Snippet

[wpcode id="4547"]

peter rumsavich
<10

Convert Uploaded Images to WebP Format Automatically

Automatically convert uploaded images to WebP format.

AdCritter

Audience Pixel Code

Amanda Sox
<10
1 102 103 104 105 106 173