Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
sometimes we need to add default text as post excerpt where you can view in post dashboard or frontend now use the plugin to do that or add simply code on WordPress function.php file.
This code snippet will let you filter excerpt filed by WordPress built-in hook default_excerpt
Steps to register widget area on WordPress:
function zytheme_excerpt_content( $content ) { $content = "This Text will add automatically when add new post";// Change This Text As You Need return $content; } add_filter( 'default_excerpt', 'zytheme_excerpt_content' );
Did you find the WordPress snippets in this article helpful? Share it with your friends and if you have any questions and want to ask us about it, please don’t hesitate to add comment.