• Hi there,

    Thanks for a great plugin!

    Just want to see if there is any way for this plugin to support a shortcode or a PHP string in the username input field on the widget?

    I’m creating a author catalogue with 30+ authors where we want to pick up their twitter username from their profile an add it to a page profile.

    Tried with:

    add_filter(‘widget_text’, ‘do_shortcode’);

    and

    add_filter(‘widget_text’,’execute_php’,100);
    function execute_php($html){
    if(strpos($html,”<“.”?php”)!==false){
    ob_start();
    eval(“?”.”>”.$html);
    $html=ob_get_contents();
    ob_end_clean();
    }
    return $html;
    }

    and also installed “Shortcode Exec PHP” but your plugin won’t expand the shortcode and your input field won’t accept a php-string.

    Please let me know if you have any idea of how to make this work!

    Cheers,

    Tommy L.

    https://www.ads-software.com/extend/plugins/email-address-protector/

  • The topic ‘Allowing shortcodes in user-field’ is closed to new replies.