3

It's not a good idea to store user's data on a file that is publicly accessible. A better way would be to create a folder, and store your file under it. Also, it's better to use WordPress's filesytem class rather than directly using PHP's built-in functions. Here's a quick fix: function wpse381320_after_login( $atts ) { if ( is_user_logged_in() &&...


2

how to make this shortcode [parent-child] working with link=false , and no extract in shortcode. You can never pass boolean value as shortcode parameter, rather it should be treated as string. Your comparison over the param link value false should be used as 'false' (string). add_shortcode( 'parent-child', 'taxonomy_hierarchy' ); function taxonomy_hierarchy(...


2

If some of your comments will contain shortcodes and some won't, there's no harm in running them all through do_shortcode(). If the content has no shortcodes in it, it will simply be returned, and if it does contain shortcodes, they'll be parsed and the content returned. So you should be able to change echo '<span>'.$comment_content.'<br>'; to ...


1

Found it: <?php echo do_shortcode( '[your shortcode goes here]' ); ?>


1

Yes, you can filter and modify any 3rd party plugin's shortcode attributes and change the shortcode output according the updated shortcodes Case Study For example we have an 3rd party plugin's shortcode usermeta and its required a attribute user_id and we want to modify the user_id attribute value. The following solution is tested and working 100%. // hook ...


Only top voted, non community-wiki answers of a minimum length are eligible