Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey there betagoo,

    How are you doing today?

    This is a bug in the plugin and it has already been reported, to fix it can you please try adding the following line:

    'delete_post' => self::$perms

    To /wordpress-popup/inc/class-popup-posttype.php on line 115, see screenshot https://screencast.com/t/tgKlcGxjKC3K.

    Hope this helps ??

    Cheers,
    Bojan

    I’m having the same problem.
    The fix didn’t work for me.

    Hey edegooijer013,

    This is actually my bad, I didn’t copy the line properly from my text editor so it’s missing a comma “,” at the end.

    Please try replacing it with this one:

    'delete_post' => self::$perms,

    Cheers,
    Bojan

    Even with the comma it doesn′t work.

    This is how the code looks on my site

    `$args = array(
    ‘label’ => __( ‘PopUp’, PO_LANG ),
    ‘description’ => __( ‘Display PopUp messages on your website!’, PO_LANG ),
    ‘labels’ => $labels,
    ‘supports’ => array( ” ),
    ‘hierarchical’ => false,
    ‘public’ => false,
    ‘show_ui’ => $manage_popups,
    ‘show_in_menu’ => $manage_popups,
    ‘show_in_nav_menus’ => false,
    ‘show_in_admin_bar’ => $manage_popups,
    ‘menu_position’ => self::$menu_pos,
    ‘menu_icon’ => PO_IMG_URL . ‘icon.png’,
    ‘can_export’ => true,
    ‘has_archive’ => false,
    ‘exclude_from_search’ => true,
    ‘publicly_queryable’ => false,
    ‘rewrite’ => false,
    ‘capabilities’ => array(
    ‘read_post’ => self::$perms,
    ‘delete_posts’ => self::$perms,
    ‘edit_posts’ => self::$perms,
    ‘edit_post’ => self::$perms,
    ‘edit_others_posts’ => self::$perms,
    ‘publish_posts’ => self::$perms,
    ‘read_private_posts’ => self::$perms,
    ),
    );

    Hey again edegooijer013,

    I don’t see that line added in the code you posted here, can you please replace the code in that file with this one https://pastebin.com/p284trjV.

    Best regards,
    Bojan

    Works perfectly. Thanks for the very fast help

    Glad I could help ??

    Cheers,
    Bojan

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove popups not work’ is closed to new replies.