
Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen. We can add filters to our functions.php file, within our theme, to alter what content a theme provides by default. Syntax: <?php add_filter( $tag, $function_to_add, $priority, $accepted_args ); ?> The excerpt is commonly shown on the homepage or a page such as categories of a website where multiple posts are shown, to displays a … Continue reading
