(.|\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 '