| @@ -57,19 +57,10 @@ | ||
| 57 | 57 | if ( true === empty( $shortcode ) ) { |
| 58 | 58 | return ''; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - // Any other reasons this shortcode shouldn't be displayed? e.g. has the | |
| 62 | - // Premium plugin determined it's not the correct device type? etc | |
| 63 | - if ( true === apply_filters( 'sh-cd-filter-hide-shortcode', false, $shortcode ) ) { | |
| 64 | - return ''; | |
| 65 | - } | |
| 66 | - | |
| 67 | - // Let the Premium plugin (or anything else) know this shortcode was just rendered, e.g. for usage analytics | |
| 68 | - do_action( 'sh-cd-shortcode-rendered', $shortcode, $args ); | |
| 69 | - | |
| 70 | 61 | // Process other shortcodes within this one |
| 71 | - $shortcode = do_shortcode( $shortcode[ 'data' ] ); | |
| 62 | + $shortcode = do_shortcode( $shortcode ); | |
| 72 | 63 | |
| 73 | 64 | // Replace placeholders with user defined parameters |
| 74 | 65 | return sh_cd_apply_user_defined_parameters( $shortcode, $args ); |
| 75 | 66 | } |