(.|\n)*?<\/p>/', '

' . get_post_meta( get_the_ID(), 'best_reloaded_featurebar_text', true ) . '

', $html ); } } // return the passed value or updated value. return $html; } add_filter( 'best_realoaded_filter_featurebar', 'best_realoaded_featuredbar_value_filter' ); /** * Removes some inline styles that WP adds alongside the Recent Comments Widget. * * @link Fix from here: https://core.trac.wordpress.org/changeset/16522 * @link Details here: https://core.trac.wordpress.org/ticket/11928 */ function best_reloaded_remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); add_filter( 'show_recent_comments_widget_style', '__return_false' ); } add_action( 'widgets_init', 'best_reloaded_remove_recent_comments_style' ); /** * Adds some classes to tags in the wordcloud. * * @param string $html html string to be modified and add the label class_exists. * * @return $html modified string with the label classnames. */ function best_reloaded_add_class_the_tags( $html ) { $postid = get_the_ID(); $html = str_replace( 'id; $field_id = is_admin() || empty( $form ) ? "field_{$id}" : 'field_' . $form['id'] . "_$id"; return '
  • {FIELD_CONTENT}
  • '; } add_filter( 'gform_field_container', 'best_reloaded_add_bootstrap_container_class_to_gf', 10, 6 ); /** * Removes the filters that jetpack uses to add the share box to end of posts. */ function best_reloaded_jptweak_remove_share() { remove_filter( 'the_content', 'sharing_display',19 ); remove_filter( 'the_excerpt', 'sharing_display',19 ); remove_filter( 'the_content', array( 'Jetpack_Likes', 'post_likes' ), 30, 1 ); } add_action( 'loop_end', 'best_reloaded_jptweak_remove_share' );