This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 31st, 2011  |  syntax: PHP  |  size: 0.19 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function codefunc( $atts, $content ) {
  2. extract( shortcode_atts( array(
  3.     'c' => ''
  4. ), $atts ) );
  5.  
  6. return "<code>".htmlentities($content)."</code>";
  7. }
  8. add_shortcode( 'code', 'codefunc' );
clone this paste RAW Paste Data