Skip to content

Instantly share code, notes, and snippets.

@goranefbl
Created April 29, 2025 09:39
Show Gist options
  • Save goranefbl/3775b31d51e34424216c036d662a044c to your computer and use it in GitHub Desktop.
Save goranefbl/3775b31d51e34424216c036d662a044c to your computer and use it in GitHub Desktop.
polylang support
<?php
/**
* Refer a Friend Product Share Link HTML
*
* Available variables: $rafLink (Referral link), $share_text(share text option)
*
* @see https://wpgens.com/docs/how-to-edit-template-files-and-keep-them-after-plugin-update/
* @version 3.2.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$share_text = get_option( 'gens_raf_share_text' );
$share_text = function_exists( 'pll__' ) ? pll__( $share_text ) : $share_text;
?>
<div class="gens-raf-text">
<?php echo esc_html( $share_text ); ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment