Like mmm said, user_register()
is not for displaying additional content, but for hooking into the internal user creation flow.
What you will need to do is to hook into user_register()
to store a short-lived transient marking that the user has registered. Then, add your modal code to the wp_footer()
output, wrapped in a test for the transient you just set to see if a new user has been created (not forgetting to delete the transient immediately afterwards).
Hope that helps
Related Posts:
- How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?
- Relative path instead of absolute for wp_enqueue_script
- How to integrate my HTML and javascript into my child theme
- enqueing Javascript and CSS
- Bootstrap 4 Optimization
- Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- Use wp_enqueue_scripts, not wp_print_styles?
- Custom Admin CSS styles to style media uploader?
- Write text below a specific part of a sentence
- How to create fa-bars animated menu
- Child theme stylesheet not always overriding “index”
- How can I get the search form to be selected automatically?
- Cannot set property ‘className’ of null at setThemeFromCookie
- Custom Plugin – CSS works, JS doesn’t
- How can I force Dynamic CSS via ACF values to update on page load?
- functions.php – inject inline css from file
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- Load custom CSS before admin CSS
- Theme JS is available but theme CSS isn’t
- Including CSS files in HEAD based on page content
- prevent HTML output if custom field is empty [closed]
- Hide Tab Titles from Tabs Block
- Dequeue styles with query doesn’t work
- Unable to use Datepicker in a table when inserting a row
- Bootstrap Integtration
- Enqueue CSS and Script only if needeed
- How would I add this code to a single WordPress page?
- Trouble with adding preloader to my home page index.html and index.js
- Import HTML code that loads css and javascript into specific page
- Interactive maps in wordpress
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- plugin not loading my css and js
- Making a
- How to get these two divs side-by-side?
- How does the data-toggle attribute work? (What’s its API?)
- Full-screen iframe with a height of 100%
- Check if an element contains a class in JavaScript?
- height style property doesn’t work in div elements
- Why is marquee deprecated and what is the best alternative?
- Refresh/reload the content in Div using jquery/ajax
- Why write script type=”text/javascript” when the mime type is set by the server?
- Retrieve the position (X,Y) of an HTML element
- Align elements side by side
- CSS – display: none; not working
- CSS/HTML: Create a glowing border around an Input Field
- Creating Accordion Table with Bootstrap
- Adding Google Translate to a web site
- CSS fixed width in a span
- Why are my divs overlapping?
- How to enqueue style before style.css
- How to add stylesheets only to pages with specific shortcode?
- What is the correct way to enqueue multiple CSS files?
- Remove wp_add_inline_style
- How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?
- How do I load custom scripts and styles for a page?
- WordPress Displaying Thumbnails Vertically
- Enqueued Stylesheets Effecting Admin Styles
- wp_enqueue_script + how to load JS or CSS in one URL merge call?
- Changing Font-Size based on specific Font thru javascript
- Minify HTML, CSS, JS with PHPWee?
- Relative path in wp_register_style not working
- Show post in slider
- WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files
- Show enqueued CSS and Script in custom header
- Different ways to load child theme css
- How to override Bootstrap css with my child theme css in wordpress?
- Does costum code in the root folder get lost when wordpress is updated?
- Changing CSS FilePath for All Pages
- CSS Minification
- Title has word broken when viewed in mobile [closed]
- Faster fonts on mobile
- Ordering stylesheet above using functions.php
- Display Something in the Header After All Styles are Loaded
- How to change “““ to “““?
- Do I just put the html in a page when enqueueng or do I also have to reference js file from the html page [closed]
- Remove CSS & JS from
- Acessing HTML element with no specific tag on it [closed]
- Earlier stylesheet not overriding later one
- Including Styles and JS files to work ON my plugin interface
- With over a page of content the footer remains where the bottom of the screen was at top scroll
- Equal height sections in custom Headway Theme
- W3TotalCache and Javascript — what should go where, when?
- I have html form and need to make it work in text editor on template. Only problem is it has .sccs styling file
- Button doesn’t work in the profile panel
- How can I hide this custom slider while Elementor editing window is open?
- Clickable Text To Replace Radio buttons
- Img load while refreshing
- How to Compress Css/js code in wordpress and increase loading speed?
- How to display javascript banner in website header?
- Divi Theme HTML code is different in View Page Source than in the Firefox Inspector
- How to Take Logo Out of Navigation Menu? [closed]
- @media applying globally and not separately for each screen width [closed]
- Site images are fixed in front of my site content [closed]
- Controling css order
- Why are my parent styles loading after my child styles?
- Trying to customize wordpress drop down categories
- Converting Static HTML pages to WordPress
- Enqueue MCE Editor CSS in admin page
- “Plate” theme broken after update