Make wpml-config.xml. https://wpml.org/forums/topic/how-to-translate-customizer-fields/
https://wpml.org/documentation/support/language-configuration-files/
Install WPML String Translation
Follow this: https://wpml.org/documentation/getting-started-guide/translating-theme-options/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_product_add_to_cart_text', function( $text, $instance ) { | |
$product_type = $instance->get_type(); | |
if( 'zoom_meeting' === $product_type ) { | |
return esc_html__( 'Add to Cart', 'theme-slug' ); | |
} | |
return $text; | |
}, 10, 2 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function theme_slug_disable_meeting_before_minutes( $response, $meeting_id ) { | |
$meeting_details = get_post_meta( $meeting_id, '_meeting_zoom_details', true ); | |
if ( ! empty( $meeting_details ) && is_object( $meeting_details ) ) { | |
if ( $meeting_details->type === 8 || $meeting_details->type === 3 ) { | |
$meeting_details->start_time = false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do as the insturction to install create-react-app until npm start cmd. | |
Visit the ip of the VVV i.e.192.168.50.4:(provided port) | |
Then, create a .env file in the project folder and write the code "CHOKIDAR_USEPOLLING=true" to the file and restart npm. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Go to plugins/jetpack/class.jetpack-data.php | |
2. In the file, below get_access_token fn: return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin name: WP Trac #42573: Fix for theme template file caching. | |
* Description: Flush the theme file cache each time the admin screens are loaded which uses the file list. | |
* Plugin URI: https://core.trac.wordpress.org/ticket/42573 | |
* Author: Weston Ruter, XWP. | |
* Author URI: https://weston.ruter.net | |
*/ | |
function wp_42573_fix_template_caching( WP_Screen $current_screen ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function( blocks, element ) { | |
var el = element.createElement; | |
function Stars( { stars } ) { | |
return el( 'div', { key: 'stars' }, | |
'★'.repeat( stars ), | |
( ( stars * 2 ) % 2 ) ? '½' : '' ); | |
} | |
blocks.registerBlockType( 'stars/stars-block', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( current_user_can( 'customize' ) ) { ?> | |
<div class="message"> | |
<p><?php _e( 'There are no pages available to display.', 'textdomain' ); ?></p> | |
<p><?php printf( | |
__( 'These pages can be set in the <a href="%s">customizer</a>.', 'textdomain' ), | |
admin_url( 'customize.php?autofocus[control]=showcase' ) | |
); ?> | |
</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************************************************/ | |
## Social share buttons. | |
/***************************************************/ | |
function sachyya_social_sharing_buttons() { | |
global $post; | |
// Show this on post only. | |
// Get current page URL | |
$shortURL = get_permalink(); |