-
core
WordPress 5.9.2
https://wp-plugin-api.com/version/wordpress-5-9-2/ -
core
WordPress 5.9.1
https://wp-plugin-api.com/version/wordpress-5-9-1/ -
core
WordPress 5.9
https://wp-plugin-api.com/version/wordpress-5-9/ -
core
WordPress 5.8.3
https://wp-plugin-api.com/version/wordpress-5-8-3/ -
intermediate_image_sizes_advanced
Remove image sizes
add_filter( ‘intermediate_image_sizes_advanced’, ‘hoge_remove_default_images’ ); function hoge_remove_default_images( $sizes ) { unset( $sizes[‘small’]); // 150px unset( $sizes[‘medium’]); // 300px unset( $sizes[‘large’]); // 1024px unset( $sizes[‘medium_large’]); // 768px return $sizes; } -
Display EXIF and IPTC Metadata in the Edit Media Screen
function media_hacks_attachment_fields_to_edit( $form_fields, $post ){ // get post mime type $type = get_post_mime_type( $post->ID ); // get the attachment path $attachment_path = get_attached_file( $post->ID ); // get image metadata $metadata = wp_read_image_metadata( $attachment_path ); if( ‘image/jpeg’ == $type ){ if( $metadata ) { $exif_data = array( ‘aperture’ => ‘Aperture’, ‘camera’ => ‘Camera’, ‘created_timestamp’ => ‘Timestamp’, ‘focal_length’ => ‘Focal Length’, ‘iso’ => ‘ISO’, ‘shutter_speed’ => ‘Exposure Time’, ‘orientation’ => ‘Orientation’ ); foreach ( $exif_data as $key => $value ) { $exif = $metadata[$key]; $form_fields[$key] = array( ‘value’ => $exif ? $exif : ”, ‘label’ => __( $value ), ‘input’ => ‘html’, ‘html’ => “ID][$exif]’ value='” . $exif . “‘ /> ); […] -
How to customize the Add to Cart button in WooCommerce
https://quadlayers.com/customize-add-to-cart-button-woocommerce/ -
woocommerce_loop_add_to_cart_link
Override loop template and show quantities next to add to cart buttons
/** * Override loop template and show quantities next to add to cart buttons */ add_filter( ‘woocommerce_loop_add_to_cart_link’, ‘quantity_inputs_for_woocommerce_loop_add_to_cart_link’, 10, 2 ); function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) { if ( $product && $product->is_type( ‘simple’ ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) { $html = ‘<form action=”‘ . esc_url( $product->add_to_cart_url() ) . ‘” class=”cart” method=”post” enctype=”multipart/form-data”>’; $html .= woocommerce_quantity_input( array(), $product, false ); $html .= ‘<button type=”submit” class=”button alt”>’ . esc_html( $product->add_to_cart_text() ) . ‘</button>’; $html .= ‘</form>’; } return $html; } https://woocommerce.com/document/override-loop-template-and-show-quantities-next-to-add-to-cart-buttons/ -
core
WordPress 5.8.2
https://www.wp-plugin-api.com/version/wordpress-5-8/ -
core
WordPress 5.8, 5.8.1
https://www.wp-plugin-api.com/version/wordpress-5-8/ https://www.wp-plugin-api.com/version/wordpress-5-8-1/