Advertisement
seoserpent

CalPress shortcode function

Jun 6th, 2012
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function calpress_shortcode( $attrs ) {
  2.     global $calp_app_controller, $post;
  3.     ob_start();
  4.     $calp_app_controller->shortcode_append_content( $post->ID, $attrs );
  5.     $output = ob_get_contents();
  6.     ob_end_clean();
  7.     return $output;
  8. }
  9. add_shortcode( 'calpress', 'calpress_shortcode' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement