Files
roi-theme/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/auth-check/auth-check.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

19 lines
783 B
JavaScript
Executable File

( function ( $ ) {
const $document = $( document );
$document.on( 'heartbeat-tick.wp-auth-check', function ( e, data ) {
if ( 'wp-auth-check' in data && ! data[ 'wp-auth-check' ] ) {
/* when opening the auth iframe popup, add our user key field so we can identify him */
setTimeout( function () {
$( '#wp-auth-check-frame' ).off( 'load.tvd' ).on( 'load.tvd', function () {
$( '#wp-auth-check-frame' ).contents().find( 'form#loginform' ).append( '<input type="hidden" name="tvd_auth_check_user_key" value="' + tvd_auth_check.userkey + '">' );
} );
} )
}
} );
/* after login, trigger and event on the document where other plugins can listen */
window.tvd_after_auth = function ( data ) {
$document.trigger( 'tvd_after_auth', data );
}
} )( jQuery );