Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter zorrobyte

    (@zorrobyte)

    I scoured the file and found register_post_type functions referring to EM_POST_TYPE_EVENT and event_post_type

    However by dumb luck, I simply used “event” and it worked perfectly!

    For anyone else that finds this thread, the proper code is:

    add_action('init', 'my_custom_init');
    function my_custom_init() {
        add_post_type_support( 'event', 'publicize' );
    }
    Thread Starter zorrobyte

    (@zorrobyte)

    Better yet, now that I have been reading around about how hooks/etc work, would it be possible to invoke AFU with a shortcode from anywhere and append the uploaded file URL to a meta? Consider it another $20.

    Then you’d have to figure out how to delete files from meta URL for a full solution.

    Who knows, bounty+however much you get from uploading it to Codecanyon.

    Thread Starter zorrobyte

    (@zorrobyte)

    Yes, that sounds terrific! To verify, yes the current logged in user who should be able to delete files is the post author. It will be nice to limit the amount of files a user can attach and having them delete old files before uploading new ones, will be a great help.

    On an unrelated note, I have asked WP-Types (https://wp-types.com/home/cred/) to integrate chunked uploads into their platform. I referred them to you for assistance. If they never get around to it, I’m sure people would pay to be able to extend the platform using a plugin for advanced upload handling or sell your solution to them.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)