Gist cf1dfcccebf56e2735ac39eabbac8281
✓ Published0🌍 Public
KKopylovVitalik
Last edited Apr 7, 2020
Created on Apr 7, 2020
This example demonstrates how to enable WordPress page excerpts by adding post type support for the 'excerpt' feature. The code hooks into the WordPress 'init' action and calls `add_post_type_support` for the 'page' post type, making excerpt fields available on page editing screens. It uses the WordPress Plugin API's `add_action` function to register the callback. The snippet is intended for theme or plugin developers who need to display page summaries without custom fields or additional database queries.
AI-generated description