The plugin should use the API, not some made-up SQL. addslashes()
is not safe enough anyway.
$user = get_user_by( 'email', '[email protected]' );
echo $user->ID;
Besides that, the user tables are almost the same, there are just some tighter restrictions for user names in multi-site, because new sub domains could be made from the names.
Related Posts:
- WordPress sharding: which multi-DB plugin to use?
- How to run Two WordPress blogs with different themes and with single database and same content
- Using Vagrant for customizable WordPress Multi-sites [closed]
- “Master” WordPress Multisite – Database Sync
- Storing Form data in a different database
- How to implement data residency in my WordPress site
- Managing database tables in WordPress multisite
- Delete tables from database when deleting plugin
- What is a Network Activated Plugin Exactly?
- Simple form that saves to database
- Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?
- How do I check what plugins are enabled via the database?
- While using WordPress Multisite is it possible to display data to main site from subsites?
- Is it possible to run plugin code when a multisite blog is deleted?
- Multi domain, multi sites with different themes and content
- Getting Custom Post Type content from main-site of a Multisite
- How can a Firebase user registration and login be integrated into a WordPress site?
- Aggregate Summaries of Posts of Different Blogs in Multisite Instance
- Posts wont expire
- Multisite functions to communicate with individual site functions
- How to update widget_text in the wp_options table
- I’m trying to create security question field for my login page
- prefix table and plugins
- Duplicate a Multi-Site Subdomain
- How to get last_updated and newest_blogs in WP 3.0
- how to show database content in wordpress post
- Display All Non-Used Plugins
- What is the easiest way to implement cascading database upgrade for my plugin?
- Having separate plugins and themes folder for multi-site setup
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin
- Remove filter from WordPress Plugin
- If I delete plugins via FTP are settings kept in DB?
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- What kind of data is that?
- Cannot login to ADMIN even after changing password in phpmyadmin
- Unable to install theme recommended plugins on Multisite
- Embed a Google Sheet as you view it in a separate tab?
- Building an email signup form. Where should the information be saved in the DB?
- My Category is too big on the Menu what can i do?
- Any recommendation on how to manage ads?
- Prevent duplicate records in plugin table
- There is any way to remove post-format filter? [closed]
- WordPress multi domain – redirect
- Automatic switch to backup database on fail
- Create a table with wordpress plugin boilerplate
- Subdomains with almost the same content
- Why this function not working for install database on plugin activation
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Can I create a table on my DB without creating a plugin?
- WordPress : Explain Plugins & Theme string value in database
- Plugins in WP_Options but not Active
- Create a single website with 3 theme options in wordpress
- dbDelta not adding additional columns in plugin database update
- Updating options into the wp database performance
- Ajax save data to database on document ready, no data being saved
- How to edit a published post?
- WordPress super admin login issue. (Automatically logout)
- External wpdb connections in different plugins on single page
- Hosting multiple sites
- WordPress plugin: efficient way to store large data
- Is this plugin safe to run?
- Integrating Custom Database with WordPress
- Multisite Plugin – Access options (wp_options) on child sites
- Getting URL GET parameter with Code snippets and storing it in database?
- Multisite Change from domain.com to sub.newdomain.com
- Same Plugin tables between wordpress installations
- Can I edit multiple sites with an online WordPress account?
- Fatal error: require_once(): Failed opening required
- add_action(‘the_content’, ‘my_plugin_content’) is null
- Creating one user access account for all the multiple sites
- WordPress database problem wp_posts, primary key
- How to allow URL with filename & extension in wordpress?
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- PHP message: WordPress database error Deadlock found when trying to get lock
- how to add navigation icons in specific template?
- Update javascript URL in header – Domain Mapping Plugin [closed]
- using wordpress login details for other website / application / forum?
- how to create database to use it in wordpress website?
- how can i get records from wp_postmeta table using particular meta_key in database?
- How to create a custom page for unrelated database?
- User content database [closed]
- How do plugin updates work?
- Automatization for automatization
- Write mysql credentials in plugin
- Is there going to an issue running different features of WP site in different subdomains?
- Plugin on all site except primary one
- Integrating planning tools in wordpress
- How to find an option in the database?
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Get the url of attachments from the post?
- Pulling sub-site content into specific pages
- Create New Admin Menu Section – Like how custom post type works, in a way
- Frontpage Admin Bar Disappeared
- Shortcode returning specific content of a post
- get_option returning a different value from what’s saved
- turn off WooCommerce for a site in a multi site environment
- How can I delete the options from DB when the plugin is deleted?
- Form with response button after on table after submission
- Can’t save formdata in DB