Not tested, but try to do a post request via ajax. The file you call via ajax should look something like this:
require( dirname(__FILE__) . '/wp-load.php' );
$user = filter_input( INPUT_POST, FILTER_SANITIZE_STRING );
$pass = filter_input( INPUT_POST, FILTER_SANITIZE_STRING );
is_wp_error(
wp_signon(
array(
'user_login'=>$user,
'user_password'=>$pass
)
)
) ? die( -1 ) : die( 0 );
Put this code in a file (e.g. ajax-login.php) and call it vai ajax. Then WordPress should set a cookie to grant access.
Related Posts:
- Turn Off Auto Update for Single Plugin
- WooCommerce – How to Add a Custom Field to Cart Items and Cart Totals [closed]
- Is there a way to use latex \cite{reference} in wordpress?
- How to check plugin compatibility before upgrading WordPress
- How do I unlock a post programmatically?
- Force Plugin to English Translation
- How to parse nested shortcodes?
- Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
- Is it possible to have screenshots in any other section rather than the screenshots section?
- Removing user contact methods works from functions.php but not from a plugin
- How to extract images of post and pages excluding header and logo image in wordpress?
- Subscribe2 Configuration
- Dynamic HTML not displaying at respective place
- I need to Remove this line
- Should I global $wpdb outside of any of my plugin’s functions scope?
- Filter or action hook to insert content on admin pages before tag
- How do I change the default WordPress e-mail ID for sent e-mail?
- How to create a word press user with hashedpassword
- Display specific WooCommerce products to different types of users
- Is it possible to set up multistore in Woocommerce? [closed]
- Leveraging WordPress Comments on Custom Plugin Object page
- Woocommmerce show SKU in cart page
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Show HTML form before WordPress plugin deletion
- Redeclare theme’s function in a plugin
- Check if we’re viewing an event
- Show price with Geo IP location
- Menus, but not by theme location
- How to get 1 or 2 specific posts on top of my wordpress blog?
- Email Bounce Address
- Getting value from dymanic text variable into Contact Form 7
- Will Gutenberg Have a Negative Impact on Page Speed?
- How to export post 2 posts WordPress plugin data [closed]
- import posts with dutch/special letters
- Installing Jplayer in WordPress
- add_filter doesn’t work
- AJAX call – failling to call do_action
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Run function on plugin activation before plugin is loaded
- Register Script in Plugin Widget
- Updating options into the wp database performance
- Ajax save data to database on document ready, no data being saved
- Image crop, resize and compression plugin?
- How to Include File from Plugins into Template?
- List category posts displaying limited posts
- Woocommerce Coupon Menu and Marketing Menu missing After “Coupons can now be managed from Marketing > Coupons.” [closed]
- “uagb/section and uagb/columns block”
- Progmatically adding menu links to the default (Top) or Footer menu
- How to remove menus items from Menu section from WordPress theme customizer
- Block installation of specific plugins on a server level (CentOS 6 x64)
- Is there a way to easily manage Project options (custom-fields)
- Plugin generated unexpected output – No PHP errors
- Changing plugin options from theme functions file?
- how would I include some html in the header section of a wordpress plugin? I get an error
- Automatic WordPress Backup Plugin works, but says it’s not
- Category “same post” retreive and display
- Adding custom Field To The Posts Listing
- Replace the_content with ACF Flexible Content via function
- Scrape key check failed. Please try again
- Error: call_user_func_array() expects parameter 1 to be a valid callback
- How to redirect users to the last page viewed
- Referrer Question From Server Log
- is there a way to preload specific images for desktop users only? (excluding mobile users)
- WordPress Shortcodes – Return $Variable
- Woocommerce convert simple products to variations
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Disable Plugin or JS on Specific Admin URLs
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Bing/msn bots is heavily requesting random of my website
- How to bookmark pages that have dynamic URLs?
- Woocommerce budget search
- WordPress Thickbox Navigation Issue in Gallery
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Allow vendors on a WordPress site to pick from a gallery of pre-selected images when choosing product’s featured image
- Update and remove buttons are hidden in plugin’s page
- How to detect if i am on plugin’s settings page
- Overwrite user role
- Include plugin form in the home page
- Woocommerce: deleted single-product.php, everything still works. How is it possible?
- Plugins effecting layout & login
- How to delete only user meta value (not key) from usermeta table in wordpress?
- Is saving multiple options or saving multiple items in one option better?
- Style WordPress Custom Post Type Single Page
- How to set up year view for datepicker in The Events Calendar plugin?
- WordPress Custom post type won’t save properly
- Using Postmash plugin in WordPress 3.3.1
- Choose User to email when adding a new post?
- Element works, but not on wordpress site [duplicate]
- AdBlock blocks my non-advertising sidebar images [closed]
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- Can I install plugins manually on WP.com? [closed]
- A plugin doesn’t show up and refuse to be installed
- How can I output completely custom content with plugin while still having header, footer, sidebar etc [closed]
- Woo Commerce filter
- WordPress Customise
- Predefine Product Variations for specific custom product type [closed]
- Hook automatic_updates_complete to autoupdate plugin
- Create plugin with multiple blocks
- Console errors after WordPress Update 6.1
- View Version Details” on Plugin update shows “Plugin not found