Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter neodcb

    (@neodcb)

    Hello

    I would like to:

    In file class-wow-armory-character-plugin.php

    public function shortcode($atts, $content = null)
    	{
    		$options = shortcode_atts(array(
    			'name' => '',

    Change to:
    'name' => '';
    in:
    'name' => '[userinfo field="display_name"/]',

    Thanks for help me

    Plugin Author Adam

    (@blueajcooper)

    I’m not quite certain what you’re trying to achieve. But if I’m reading this correctly you want to pass the value retrieved from another shortcode into the wow_armory_plugin shortcode. This is possible but I would not advise altering the wow_armory_plugin code to do it. It will all be done within call to the shortcode itself.

    You will need to call the shortcodes within a template but you can assign the return value from your userInfo call to a variable with PHP and then call the wow_armory_character shortcode passing that in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WoW Armory Character widget with the connected member’ is closed to new replies.