edemo / wp_PDOauth_plugin

Wordpress plugin for logging in with eDemo SSO service
0 stars 2 forks source link

Add wp shortcode function to manage a "sign it" button #8

Closed Claymanus closed 9 years ago

Claymanus commented 9 years ago

shortcode defines a button with <a> tag, which allows the user sign a petition. The function gives various hrefs in <a> tag or simple message depending if user signed in or not, or signet the petition yet or just now.

defines a do_sign_it function to register the event in wp database defines a is_signed function to able to check the petition is signed.

Claymanus commented 9 years ago

Pushed in this commit implementing the update functions is moved to an other issue