Load WP Admin scripts in a child theme functions file

The load-scripts.php is concatenation of scripts from performance. It doesn’t impact their functionality. As far as I remember there is no way to reuse it at the site’s front end. However simply looking up and enqueueing specific scripts you need will work just fine. They will just be loaded in normal fashion, without concatenation step.

Getting error while trying to use custom comment function

You should not have the () on the callback field. You shouldn’t need the add_action so remove add_action(‘load_comments’, ‘custom_comments’); And try: wp_list_comments(‘type=comment&callback=custom_comments’); Also, you should extract the $args so they are available in your function: function custom_comments($comment, $args, $depth) { $GLOBALS[‘comment’] = $comment; extract($args, EXTR_SKIP); //etc http://codex.wordpress.org/Function_Reference/wp_list_comments

Expanding a function to call a plugin or show a link

Have you tried: function my_members_only_shortcode($atts, $content = null) { if ( !is_user_logged_in() ) { $content=”<p>This content is for members only. Please log in or register first.</p>” . do_shortcode(‘[do_widget “Social Login” ]’); } return $content; } That should replace the content with your message and special short code content only if the user is not logged … Read more