enable-pingbacks-for-wordpr.../enable-pinpgacks-for-pages.php

17 lines
733 B
PHP

<?php
/*
Plugin Name: Enable Pingbacks for WordPress Pages
Plugin URI: https://giteacoffee.emucafe.org/naferrell/enable-pingbacks-in-wordpress-pages
Description: Add pingback and trackback support to WordPress's native pages.
Author: Nicholas A. Ferrell
Author URI: https://thenewleafjournal.com/author/naferrell
Version: 1.0
License: MIT
License URL: https://opensource.org/licenses/MIT
Text Domain: enable-pingbacks-in-wordpress-pages
*/
// add pingback support to pages
// you may modify the below snippet to add pingback and trackback support to additional post types
// i.e., for post-type event you would add 'event' after 'trackbacks' with the same spacing in the parenthetical
add_post_type_support( 'page', 'trackbacks' );