clear_fwembed_cache(); echo '
' . __('Cache cleared successfully!', 'fourthwall_text_domain') . '
' . __( 'Display entire store:', 'fourthwall_text_domain' ) . ' [fourthwall]
' . __( 'Display single product:', 'fourthwall_text_domain' ) . ' [fourthwall_single url="https://your-store.fourthwall.com/products/product-name"]
' . __( 'With description:', 'fourthwall_text_domain' ) . ' [fourthwall_single url="https://your-store.fourthwall.com/products/product-name" show_description="true"]
' . __( 'Note: Disable SSL verification only for local development. Keep enabled for production sites.', 'fourthwall_text_domain' ) . '
' . "\n"; echo '' . __( 'The fourth wall URL', 'fourthwall_text_domain' ) . '
'; } function render_ssl_verify_field() { // Retrieve data from the database. $options = get_option( 'fourthwall_settings_name' ); // Set default value. $value = isset( $options['ssl_verify'] ) ? $options['ssl_verify'] : ''; // Field output. echo ''; echo '' . __( 'Enable SSL verification', 'fourthwall_text_domain' ) . '
'; } /** * Clear all Fourthwall embed cache */ private function clear_fwembed_cache() { global $wpdb; // Delete all transients that start with 'fwembed_' $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", '_transient_fwembed_%' ) ); // Also delete transient timeouts $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", '_transient_timeout_fwembed_%' ) ); } } new fourthwall_settings;