Miroslav Mitev

Results 40 comments of Miroslav Mitev

Thanks for the review @merkushin! I've updated the code with your suggestions. Could you give it another look? I know these are minor changes but I can't bypass the review...

Hey @muitsun, here's a quick script that might help: ```php add_action( 'deleted_user', 'my_cleanup_orphaned_sensei_certificates' ); function my_cleanup_orphaned_sensei_certificates() { $where_author_does_not_exist = function( $clauses ) { global $wpdb; $clauses['join'] .= " LEFT JOIN...

Hey @mui-tsun, no problem. > Would this script be incorporated into a future update? I've added it to the queue, but it's hard to say when it will go in....

@mui-tsun It should clear all orphan certificates.

Thanks for the feedback @mui-tsun! Did the script delete any certificates for the other users at all? Do you happen to remember the post status (published, draft, trashed, etc.) of...

> Yes, many orphan certificates were deleted. Good to hear! > Of the remaining 4, the post status is "Published". Looks just like all the other valid certificates. I wasn't...

I agree with @yscik. We should consider solving this in a more general way and not only for one data type. Also, this approach most likely will solve these issues:...

Hey @Tison, the certificates are stored as posts so for getting all URLs, something like the following might do the trick: ```php add_action( 'wp_loaded', function () { $certificates = get_posts(...

Hey hey, Deke! Content Drip is now part of Sensei Pro, so maybe @woocommerce/evergreen could give a better estimate. cc @burtrw