Skip to Content

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.

Source File

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

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?