Add a single Order export field with all Shipping address details
function custom_woo_ce_extend_order_fields( $fields ) { $fields[] = array( 'name' => 'shipping_address_full', 'label' => 'Shipping: All details',…
Use the Variation Name instead of Slug within the Product Name detail of Product exports
function custom_woo_ce_get_product_title_attribute_formatting( $format = 'slug', $post_id ) { // Set the format to Attribute Title $format…
Tutor LMS - Woocommerce Create Account After Payment
Gửi email tài khoản sau khi đã "completed" đơn hàng trên Woocommerce (Cartflows) -> kích hoạt…
Masterstudy LMS - Woocomerce Create Account After Payment
Gửi email tài khoản sau khi đã "completed" đơn hàng trên Woocommerce (Cartflows) -> kích hoạt…
JP_Wp_Snippets
All different snippets I have been using
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.
Login 'Remember Me' checked by default
'Remember Me' checked by default
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.