# Sign-Up Prompt Near the End of Posts

> Invites logged-out readers to create a free account three quarters of the way through each article, when they are most engaged.

- Type: Universal
- Runs: Content quarter third
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: users, registration, call-to-action
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/membership-signup-prompt/

## Code

```php
<?php if ( ! is_user_logged_in() && get_option( 'users_can_register' ) ) : ?>
<aside class="wpide-signup-prompt" style="margin:2em 0;padding:1.25em;border-radius:8px;background:rgba(127,127,127,.08);text-align:center">
    <p style="margin:0 0 .75em"><strong>Enjoying this article?</strong> Create a free account to get new posts and join the discussion.</p>
    <a class="wp-element-button" href="<?php echo esc_url( wp_registration_url() ); ?>">Create my account</a>
</aside>
<?php endif; ?>
```

## Notes

Only shows when "Anyone can register" is enabled in Settings > General.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Sign-Up Prompt Near the End of Posts" in its snippet library and add it in one click; or create a new Universal snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
