• Resolved Noche70

    (@noche70)


    I need to add this shortcode using hooks.

    if(is_single() && is_main_query()){

    $after = ‘[shortcode]’;

    //modify the incoming content
    $content = $content . $after;

    This is not working.

Viewing 1 replies (of 1 total)
  • Plugin Author Safeer

    (@safeerz)

    Sorry for the late reply,

    Just in case if someone needs it, It should use

    $after = do_shortcode(‘[rcblock id=”12345″]’);

Viewing 1 replies (of 1 total)
  • The topic ‘Use shortcode with hooks’ is closed to new replies.