How shortcode work on all themes

Hi,

? have made a function in the function.php file in a theme. That made users possible to types shortcodes in their post or pages. But i want this code work for all themes.

And i dont want to add the code manually on all themes. Because there is too much and i want one centerpoint.

Where do i place this code to work this code on all themes?