Conversation
supportHi! Many thanks for your job. It’s traditional feature – “shortcode” or… can you give instruction to get html from link in PHP? I have link “google.com” and i need to get html of preview box, something like: <?php $link = ‘google.com’; $html = get_link_preview_html(‘google.com’); ?>
Thanks for the suggestion. I just pushed a new version, 1.3, which supports shortcode. Here’s an example: <?php echo do_shortcode( '[wplinkpreview url="google.com"]' ); ?>
Thanks for the suggestion. I just pushed a new version, 1.3, which supports shortcode. Here’s an example: <?php echo do_shortcode( '[wplinkpreview url="google.com"]' ); ?>