Last active
February 23, 2019 14:01
-
-
Save yhira/27466eb5bbf7a8eabcbf13debd05a532 to your computer and use it in GitHub Desktop.
コンテンツから移動しないスクリプトファイル条件を追記する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//本文中から移動しないスクリプトコード条件を追記する | |
add_filter('cocoon_exclude_script_movement_from_content', function($is_exclude, $script){ | |
return $is_exclude || includes_string($script, 'tradingview_embed_options'); | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment