Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop if user has some condition #5

Closed
2 tasks done
fumikito opened this issue Jan 6, 2017 · 1 comment
Closed
2 tasks done

Stop if user has some condition #5

fumikito opened this issue Jan 6, 2017 · 1 comment
Assignees
Milestone

Comments

@fumikito
Copy link
Owner

fumikito commented Jan 6, 2017

Add hook to validation.

  • nlmg_can_resign( $user_id );
  • nlmg_resign_conditions( $user_id )
if ( nlmg_can_resign( $user_id ) ) {
    // Render resign buttons.
} else {
    foreach ( nlmg_resign_conditions( $user_id  ) as $key => $condition ) {
         // $condition['label']
         // $condition['valid']
    }
}
@fumikito fumikito added this to the 1.0.0 milestone Jan 6, 2017
@fumikito fumikito self-assigned this Jan 6, 2017
@fumikito
Copy link
Owner Author

fumikito commented Apr 2, 2018

Add filter for removable conditions.

@fumikito fumikito closed this as completed Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant