If you have a function that you cannot change to prevent the premature output, you can still override the shortcode handler:
add_shortcode( 'wordpress_social_login', 'wordpress_social_login_fix' );
function wordpress_social_login_fix( $attributes, $content ) {
ob_start();
wsl_render_login_form();
return ob_get_clean();
}
Related Posts:
- How can I replace content on site generated from plugin without changing plugin
- How to create a custom shortcode based on the layout?
- Login cookies set as wrong domain
- Unable to add TAB character to post?
- plugin shortcode output
- How to Create a shortcode to this php function
- Inject HTML meta tag inside wordpress tag using add_shortcode
- How do I apply style to each category of a list?
- Create shortcode to echo javascript
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Custom Shortcode Broken in WordPress 3.1
- Use $_GET inside a shortcode print empty Array
- How to use login_redirect with a user capability
- Namespaced shortcode?
- Login Customizer doesn’t change the background of the register form
- Where are theme codes located for WordPress?
- My plugin won’t return anything [closed]
- easy steps to make front end form without plugin
- Anyway to convert a plugin to become a shortcode?
- Render Modula Plugin Shortcode On Ajax Request
- Shortcode to update user meta
- Change wp-login to custom URL login page
- Why shortcode always displayed after footer not in body
- How to have sample page for each new register users in a membership website
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- using do_shortcode
- Why am I unable to load scripts in head in plugin?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Deactivate JS Script in Plugin Shortcode
- plugin shortcode not working on ajax request call
- Displayed content disappears when adding attributes to shortcode
- Modify page title and subtitle with a plugin
- How do I pass custom shortcode-extracted variables (taxonomy) into a query function for WordPress RoyalSlider?
- Where to find the code used to render a page that has a shortcode and a template defined?
- Shortcode not working after move wordpress website files
- Shortcode not getting replaced
- Login problem after installing my written plugin [closed]
- How to activate a plugin on the activation of a theme?
- Add Shortcode tag in Widget/Sidebar
- Flipping Book PHP Code? Any experience?
- Too many login attempts
- WPTouch – how to remove shortcodes or make shortcodes function
- convert more tag to shortcode
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Shortcode does not expand in Facebook like
- Custom Login Page — wp_signon Headers Already Sent?
- Plugin that provides the [edit] shortcode?
- Custom shortcode for displaying user based on a role parameter
- WordPress Plugin Insert Html Code with Shortcode
- Return multiple values in a shortcode attribute
- IF condition based on wp_remote_get output
- shortcode not return any thing in Gutnburg
- Shortcode Attributes to Return different $_POST
- How to change shortcode’s default theme?
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- Is there a way to convert shortcodes to html content?
- Theme My Login Shortcode Doesn’t Return Anything
- Shortcode not working – quotes seems strange
- Get all the URLs of the pages that uses a specific shortcode
- Possibility to login without password
- how do i change my website facebook login button to another text immediately user login? [closed]
- How to use template inside plugin shortcode with variables for big HTML code
- Get param from shortcode in plugin function
- shortcode – multiple instances of same parameter name in one shortcode instance
- Function call in wordpress short code handler fails
- strange shortcode error: does shortcodes requires any dependency?
- Loop returns the current page’s permalink and guid instead of the post in the loop
- WordPress unable to write files in the server
- Inserting shortcode in href – any ideas or workarounds?
- Get Image Having the ID [closed]
- wp_localize_script not passing the data
- Add the_post_thumbnail_url to a shortcode in function.php
- Get post content from outside the loop with plugin shortcode usability
- How to rewrite URL and get the values?
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- Custom PHP Page Using WordPress login
- How to prevent tabs from opening all at once
- Executing Javascript in Plugin
- Form Plugin for Api Requests which is used via Shortcode
- Echo out element to another page.
- Load CSS files in header of Bones theme?
- Shortcode and variable
- How to Use the Filter “sidebar_login_widget_form_args”
- Manage PDF downloads and protected pages
- Is there any way to inject text onto pages?
- How can I achieve this, using shortcodes
- Create Short code dynamically
- If I use an alternative login (e.g. CAS or other SSO) plugin, is my site protected from the recent brute force login attempts?
- Get variable value based on string constant
- how to check if a shortcode is used more than one time in the same post
- Adding a Tag Parameter / Filter to My Shortcode
- login in wordpress using gmail account
- Filters on the_content with plugins, pages and shortcode
- Which is a better practice when writing shortcodes: pack lots of configuration parameters or just give an id?
- grab or load text on demand
- Rename Smart YouTube’s httpv back to http for all posts
- Janrain/Simple Modal under Redirected Domain
- Elementor Pro display featured image on section -> style -> image using shortcode
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)