예제 #1
0
 /**
  * Change output for product page
  *
  * @param string $content The content of a post
  * @return Ambigous <mixed, string>|unknown
  */
 public static function products_page($content = '')
 {
     global $wp_query;
     if (!empty($wp_query->queried_object) && !empty($wp_query->queried_object->post_type) && $wp_query->queried_object->post_type == WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT) {
         return wpshop_products::product_complete_sheet_output($content, $wp_query->post->ID);
     } else {
         return $content;
     }
 }