You can't "override" whole files or functions, except in special circumstances. That is basic PHP. WordPress has code in place that will let you override particular files and functions. For example, child themes can override parent theme files. That is because of the way the WordPress Template loader works. The override only works if the files load via that mechanism. Those files are meant to be overridden. Core files are not. You can use the below code..
function test_sc($atts,$content) { return 'Howdy'; } add_shortcode('testsc','test_sc'); function clobber_test_sc($atts,$content) { return 'Hi'; } add_shortcode('testsc','clobber_test_sc');
wordpress websites chicago