As long as you aren’t passing out the plugin and other people don’t have access to it, you should be fine.
You might add something like the following to the top of the file just in case though:
defined('ABSPATH') or die('Access denied');
That will simply make sure that the file is loaded via wordpress (e.g. the wordpress ABSPATH constant has been defined)
Related Posts:
- Help With MySQL to WPDB Query Conversion
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- How to delete all records from or empty a custom database table?
- How to properly insert data into custom table via plugin
- How does WordPress handle MySQL row lock errors?
- Can I explicitly specify ENGINE=InnoDB in WordPress?
- Bad Request (Invalid Hostname) on working server, database problem
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- Changing BIGINT to INT
- greatest() function returns undefined property
- How to write one comment and publish on every post using database or plugin?
- How to determine what is generating large amount of database queries?
- Doubt using $wpbd->get_col for a single column
- Access WordPress database outside of WordPress
- Creating mySQL procedure with $wpdb
- How can I perform high-level database merging for WordPress within continues delivery?
- WordPress Backend HA (Automatic failover)
- Automatic switch to backup database on fail
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- Create a table with wordpress plugin boilerplate
- Multiple instance of data in plugin custom database table on plugin activation
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Better ads plugin has 500.000 entries in wp_postmeta
- Cannot get wpdb data (Error in a simple fuction) [closed]
- WPDB: Update table
- Issue running db create table query from static method
- dbDelta not adding additional columns in plugin database update
- Always get creating a new table with foreign key
- How to do database for download stats?
- DB Query not working in Plugin
- External wpdb connections in different plugins on single page
- WordPress plugin: efficient way to store large data
- How to access the WordPress DB from a plugin file
- Is this plugin safe to run?
- Integrating Custom Database with WordPress
- How to display results from a data table with an encrypted user id?
- add_action for publish_post doesn’t work
- What database state changes happen after a post is manually “updated” with no changes?
- Cant create table on plugin activation
- $wpdb->delete not working for me
- Performing CRUD operations on front end in wordpress
- How to securely controlling data without keeping it in postmeta?
- Store GravityForm data in phpmyadmin (mysql)
- Moving a few select DB tables to a new WP instance
- WordPress database problem wp_posts, primary key
- HyperDB failover Delay
- Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?
- Get all the related data from WordPress DB
- How can I delete the options from DB when the plugin is deleted?
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- How to fetch Data in WordPress using MySQLi or $wpdb
- How Can I Securely Implement a Password-less Login Feature?
- dbDelta only creates the last table
- Security and .htaccess
- Are there procedures to prevent malicious plugin updates?
- insert data in database table from plugin with WP3.1
- $wpdb->get_results leaking memory
- Searching users with WP_List_Table plugin
- Is it a bad practice to go directly to the mysql database while developing a plugin?
- Where should my plugin POST to?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- post_content getting cut off on blank space on $wpdb->update
- Is $wpdb->prepare escaping to much? How to use it properly?
- How to expire all wordpress user passwords instantly?
- Should you escape hardcoded URLs?
- Unable to create new database table upon plugin activation using dbDelta
- Plugin Options Not Saving to Database in WP 4.5
- How to delete Passwrd Protected posts cookies when a user logged out from the site
- How to block plugin activations with no known user or coming from unknown IP address range?
- Check for security updates
- Standard Fail2Ban vs. WP Fail2ban vs. WP Fail2Ban Redux
- How to remove traces from widget during uninstallation
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Create table from array with prepare
- Malicious File Upload [closed]
- “Master” WordPress Multisite – Database Sync
- Does deleting a Plugin via the WordPress admin ‘completely’ remove the code?
- Notice: Uninitialized string offset: 0 in social sharing mu-plugin
- How to protect WordPress from security scanner [closed]
- Best/Correct way to add an option to a category
- Where do plugin variables live in the db?
- Displaying data from another database
- Plugin: connect to external database without showing password
- 404 errors when updating options in admin dashboard
- My CPU usage in A2 Hosting Shared Plan (Turbo Boost) is high due to mysql query!
- ob_end_flush(): failed to send buffer of zlib output compression (0) in external php
- Can i stream data to a custom_post_type?
- How do I add a medium to the WordPress database with my own plugin?
- Get Shortcode output to database for static post_content
- My wp database has been hacked
- How to update a database entry with a wordpress plugin?
- No result after wpdb->insert
- How can I store user preferences in WordPress and retreive them later?
- one admin for 2 wordpress websites
- wp_verify_nonce fails always
- Validating values using Settings API?
- User register hook can’t access form request
- FATAL ERROR: WP complains about redeclaration [closed]
- How to rename files during upload to a random string?