' . esc_html( $more_text ) . ''; $output = apply_filters( 'event_star_filter_read_more_link' , $output ); } return $output; } endif; if ( ! function_exists( 'event_star_hook_read_more_filters' ) ) : /** * Hook excerpt and content filters * * @since 1.0.0 */ function event_star_hook_read_more_filters() { if ( is_home() || is_category() || is_tag() || is_author() || is_date() ) { add_filter( 'excerpt_length', 'event_star_excerpt_length', 999 ); add_filter( 'the_content_more_link', 'event_star_content_more_link', 10, 2 ); add_filter( 'excerpt_more', 'event_star_excerpt_read_more' ); } } endif; add_action( 'wp', 'event_star_hook_read_more_filters' );