How to Add Japanese Year 年 to get_the_time
add_filter( 'get_the_time', function( $the_time, $d ) { if ( 'y' == $d ) { $the_time = $the_time . '年'; } return $the_time; }, 10, 2 );
add_filter( 'get_the_time', function( $the_time, $d ) { if ( 'y' == $d ) { $the_time = $the_time . '年'; } return $the_time; }, 10, 2 );
By default the Google Map widget in the WPBakery page builder removes the pointer-events when not hovering on the Google map to prevent conflicts with other functions in the plugin but you can easily reset this using the following custom…
The Total theme makes it easy to add new image sizes under the Theme Panel > Image Sizes admin dashboard so you can better control the display of your custom post type featured images. The snippet below is an example…
This snippet will override the default published date for the Total Post Types Grid builder block to instead display the last modified date.
The snippet below is an example of how you could add custom settings to the default WooCommerce single product editor tabs. These settings will be stored in the post meta so you can easily access them on the front-end. It's…
add_action( 'wp_head', function() { // Only add brand markup on products if ( ! is_singular( 'product' ) ) { return; } // Get product price $price = ( ( $product = wc_get_product( get_the_ID() ) ) ? $product->get_price() : false );…
By default bbPress doesn't support shortcodes for the output of the Forum descriptions or in replies. You can use the do_shortcode function to include support by hooking into the bbPress content filters as shown below. Simply add this code to…
By default in the Total theme the category/archive descriptions are added as subtitles under the main title but there are theme options which allow you to move it into the main content area above the loop. Now if you want…
By default WordPress author archives only display posts from the standard post type, however, you can easily tweak things via your child theme to include any post types you want in the author archive. The snippet below shows how you…