Skip to Content
Menu

linkedin_widget_script()

Call the required LinkedIn in.js file for native buttons.

PHP March 16, 2017

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

This script only needs to be called once regardless of how many buttons are on the page.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

    Located in /libs/Functions.php on line 1240.

    No Hooks

    This function does not have any filters or actions available. Request one?
    PHP
            public function linkedin_widget_script(){
                if ( empty($this->linkedin_widget_loaded) ){
                    ?>
                    <script type="text/javascript" src="//platform.linkedin.com/in.js" async defer> lang: en_US</script>
                    <?php
                    $this->linkedin_widget_loaded = true;
                }
            }
    

    Override

    This function can not be short-circuited with an override filter. Request one?