', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'allrounder_news_pingback_header' ); if( ! function_exists( 'allrounder_news_change_comment_form_default_fields' ) ) : /** * Change Comment form default fields i.e. author, email & url. */ function allrounder_news_change_comment_form_default_fields( $fields ){ // get the current commenter if available $commenter = wp_get_current_commenter(); // core functionality $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); // Change just the author field $fields['author'] = '

'; $fields['email'] = '

'; $fields['url'] = '

'; return $fields; } endif; add_filter( 'comment_form_default_fields', 'allrounder_news_change_comment_form_default_fields' ); if( ! function_exists( 'allrounder_news_primary_menu_fallback' ) ) : /** Fallback for primary menu **/ function allrounder_news_primary_menu_fallback(){ if( current_user_can( 'manage_options' ) ){ echo ''; } } endif; if( ! function_exists( 'allrounder_news_footer_menu_fallback' ) ) : /** Fallback for Footer menu **/ function allrounder_news_footer_menu_fallback(){ if( current_user_can( 'manage_options' ) ){ echo ''; } } endif; /** * Add custom classes to the array of post classes. */ if(function_exists( 'allrounder_news_post_classes' ) ): function allrounder_news_post_classes( $classes ){ if( is_single() ){ $classes[] = 'h3-single-post'; } if( is_home() || is_archive() || is_search() ){ $classes[] = 'h3-category-item gap-2'; } return $classes; } endif; add_filter( 'post_class', 'allrounder_news_post_classes' );