{"id":769,"date":"2026-10-20T09:03:28","date_gmt":"2026-10-20T08:03:28","guid":{"rendered":"https:\/\/userswp.io\/documentation\/article\/terms-notice-with-social-login\/"},"modified":"2026-10-20T09:03:28","modified_gmt":"2026-10-20T08:03:28","slug":"terms-notice-with-social-login","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/social-login\/terms-notice-with-social-login\/","title":{"rendered":"How to show a terms and conditions notice with UsersWP social login"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The UsersWP register form can make people tick a Terms &amp; Conditions box, but social login buttons create the account in one click and never show that box. There is no setting that forces social login users to tick it. What you can do is show a short notice under the social login buttons, so people can see that signing in with a social account means accepting your terms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add the notice<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">UsersWP runs the <code>uwp_social_fields<\/code> action where the social login buttons go on the login and register forms. This snippet prints a notice with a link to your terms page. Change the URL and the wording to suit your site.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_action( &#039;uwp_social_fields&#039;, &#039;my_uwp_social_terms_notice&#039;, 35, 2 );\nfunction my_uwp_social_terms_notice( $form_type, $args ) {\n\t$terms_url = home_url( &#039;\/terms-and-conditions\/&#039; );\n\n\techo &#039;&lt;p class=&quot;small text-muted mt-2&quot;&gt;&#039; . sprintf(\n\t\t&#039;By continuing with a social account you accept our %1$sterms and conditions%2$s.&#039;,\n\t\t&#039;&lt;a href=&quot;&#039; . esc_url( $terms_url ) . &#039;&quot; target=&quot;_blank&quot;&gt;&#039;,\n\t\t&#039;&lt;\/a&gt;&#039;\n\t) . &#039;&lt;\/p&gt;&#039;;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add it to your child theme&#8217;s functions.php file or with a plugin such as Code Snippets. It shows on both the login and register forms. To show it on one form only, check <code>$form_type<\/code>, which is <code>login<\/code> or <code>register<\/code>. If the notice does not appear after you add it, clear your page cache.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The checkbox on the normal register form<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For people who use the register form itself, add the Terms &amp; Conditions field in UsersWP > Form Builder and include it in the register form. Then go to UsersWP > User Types, edit the user type and choose your page in TOS Page. The checkbox only shows once a page is chosen. To word it yourself, put <code>%%link_start%%<\/code> and <code>%%link_end%%<\/code> around the text that should link to the page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is also worth adding a line to the terms themselves saying that creating an account, including through a social login, means accepting them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The UsersWP register form can make people tick a Terms &amp; Conditions box, but social login buttons create the account in one click and never show that box. There is no setting that forces social login users to tick it. What you can do is show a short notice under the social login buttons, so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[5,16],"class_list":["post-769","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-social-login"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=769"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/769\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=769"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=769"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}