• Resolved Shipra

    (@shiprasood24)


    I’m using latest plugin version 3.4.2, PHP 8.2 and WordPress 6.5.

    I can’t see the dropdown to set default actions in plugin setting, also when editing ANY post types, the action dropdown only contains Do nothing and no other options are available. Hence I’m blocked to use this plugin to set future actions. Please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Shipra

    (@shiprasood24)

    we’ve only done these modifications to the plugin earlier, could this lead to the issue with latest version?

    use PublishPress\Future\Modules\Expirator\ExpirationActionsAbstract;
    use PublishPress\Future\Modules\Expirator\HooksAbstract;

    add_filter( HooksAbstract::FILTER_EXPIRATION_ACTIONS, function ( $actions, $post_type ) {
    $actions = array_intersect_key( $actions, [
    ExpirationActionsAbstract::POST_STATUS_TO_DRAFT => true,
    ExpirationActionsAbstract::POST_STATUS_TO_TRASH => true,
    ] );

    //$actions['do_nothing'] = __( 'Do nothing', 'XYZ' );

    return $actions;
    }, 10, 2 );
    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @shiprasood24

    Sorry for the inconvenience.

    Can you lower down your PHP version to 8.1 or 8.0 and see if you notice something different?

    Thanks,

    Thread Starter Shipra

    (@shiprasood24)

    Hey @rizaardiyanto, I could track down the issue here. This was happening because of our modifications done to plugin. As we recently upgraded to latest version of plugin(we were earlier on 2.x version) and the EXPIRATION_ACTIONS have changed in newer versions so our filter was filtering incorrect actions leading to empty dropdowns. Modifiying our filter did the track & now I can use it as expected. Thanks.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @shiprasood24 I’m glad to hear that ??

    We appreciate you using our plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to set actions in posts or default actions’ is closed to new replies.