Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function show_file_func( $atts ) {
- extract( shortcode_atts( array(
- 'file' => ''
- ), $atts ) );
- if ($file!='')
- return @file_get_contents($file);
- }
- add_shortcode( 'show_file', 'show_file_func' );
Advertisement
Add Comment
Please, Sign In to add comment