I have a PHP web application in which I want to use some user data from WordPress installed inside a folder.Suppose My App is inside === →> www.example.comand my WordPress installation is inside === →> www.example.com/membership .Basically I will check if the user is registered in WordPress and uses some valuesfrom the WordPress database to limit a few parameters in my web application.I still need WordPress for Blogging, so think about how to use its user registration and Login module. Maybe?
Yes it is possible. You can use wp in your application as follows:
<?php define('WP_USE_THEMES', false); require(__DIR__'/membership/wp-blog-header.php'); if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); } ?>
Source: https://habr.com/ru/post/1608966/More articles:Unknown module in .pro file - cannot create application with androidextras module enabled - installation"QtQuick module not installed" (Android porting) - c ++IOS 9 keyboard: this application modifies the autorun mechanism from the background thread, which can lead to engine damage and strange crashes - iosHow to prevent ios screen lock with Qt - ioshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1608965/import-edges-to-orientdb-using-etl&usg=ALkJrhiAoHkUIrM5g7vg3gbiD5EWfEFj5gПодписание дайджеста сообщения с помощью BouncyCastle - javamanipulate bytes to binary levels in python - pythonWhich Windows SDK to use to create extensions for Python 3.5? - pythonPerformance StringBuilder Insert versus String Concat - stringhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1608971/wkwebview-fails-to-play-local-audio&usg=ALkJrhiog5joEUNblsZvCxFF8v2zlUdkRQAll Articles