Revisions for Podcast pages
-
Hi @zahardoc,
just wondering if revisions become available in the standard version of the plain any time soon.
Meanwhile, I added the suggested php-snippet from this threat to the function.php of the child theme. Unfortunately, the relevant entry int he wp backend / podcast-page / episode does not appear.
FYI: The site is currently running on SSP 3.4.0 and WP 6.6.2.
Next I added the following debug code to the suggested filter:
<?php
// Seriously Simple Podcasting - Adds support for revisions to the custom post type "podcast".
add_filter( 'ssp_register_post_type_args', function ( $args ) {
// Debugging: Log the current supports array before modification
if ( isset( $args['supports'] ) && is_array( $args['supports'] ) ) {
error_log( 'Current supports for podcast before modification: ' . implode( ', ', $args['supports'] ) );
} else {
error_log( 'Supports array not found or not an array before modification.' );
}
// Add support for revisions
$args['supports'][] = 'revisions';
// Debugging: Log the updated supports array after modification
error_log( 'Updated supports for podcast after modification: ' . implode( ', ', $args['supports'] ) );
return $args;
} );The debug log lists the following message:
[02-Nov-2024 12:32:20 UTC] Updated supports for podcast after modification: title, editor, excerpt, thumbnail, page-attributes, comments, author, custom-fields, publicize, revisions, revisions
Any advice is much appreciated.
Best,
Jan
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.