Support » Plugins » Hacks » Make content of a 'shortcode' translatable through php _e function

  • How do I make the content produced by this shortcode translatable with WPML?

    <div id=”CSpart2″><?php echo do_shortcode(‘[RICH_REVIEWS_SHOW num=”all”]’);?></div>

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You need to look at the shortcode handler. Find the handler function by finding a line of code that looks something like:
    add_shortcode('RICH_REVIEWS_SHOW', 'shortcode_handler_function');

    You will see something besides 'shortcode_handler_function'. Whatever is actually there is the handler function name. It’s function declaration is what you want to look at.

Viewing 1 replies (of 1 total)
  • The topic ‘Make content of a 'shortcode' translatable through php _e function’ is closed to new replies.