Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('generateblocks_dynamic_content_output', function($content, $attributes, $block){
- if ( !is_admin() && ! empty( $attributes['className'] ) && strpos( $attributes['className'], 'my-price' ) !== false ) {
- $text_to_add = '$ ';
- $content = $text_to_add . $content;
- }
- return $content;
- }, 10, 3);
Advertisement
Add Comment
Please, Sign In to add comment