• 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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @locke85,

    We haven’t added revisions support to SSP yet.

    Does the filter work for you and enables revisions functionality? Is your question about including ‘revisions’ twice in the supports array? If so, could it be that you’ve applied the filter twice?

    Thread Starter Jan

    (@locke85)

    Hi @zahardoc,

    please do count my vote for adding the revision-feature ??

    No, adding revisions only once is perfectly fine. Meanwhile, the revision count appears in the backend on selected episode-pages, but not all.

    I’m probably unfamiliar with the patters on which those are being presented after adding the filter:

    • existing episode-pages don’t show revisions, unless revised and re-saved
    • new episode pages don’t show revisions until saved for the first time

    Is that correct?

    Thanks,

    Jan

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.