SHARE
TWEET

js2

JohnnyNT Jan 22nd, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             <script type="text/javascript">
  2.             document.addEventListener("DOMContentLoaded", function(event) {
  3.                 jQuery(document).ready(function($){
  4.                     $('.wpcf-share').ShareLink({
  5.                         title: "<?php echo get_the_title( $post_id ); ?>",
  6.                         text: "<?php echo sanitize_title(wp_strip_all_tags($description)); ?>",
  7.                         image: "<?php echo $post_thumbnail_url; ?>",
  8.                         url: "<?php echo get_permalink( $post_id ); ?>"
  9.                     });
  10.                 });
  11.             });
  12.             </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top