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?
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- WP Function does not trigger on Webhook API Call
- I created a plugin with ‘view page’ that uses MYSQL + PHP. When I use wp_insert_post(), it turns everything to HTML
- Bulk Edit Media Library alt, caption, image names
- How to fetch WordPress database values in JavaScript widget
- Can i stream data to a custom_post_type?
- create pages automatically and dynamically in wordPress
- How do I add a medium to the WordPress database with my own plugin?
- How to get database connection details without longing to cpanel in WordPress?
- any word search WordPress
- WordPress disable direct access of files in WordPress installation path
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- Insert NULL value using prepare()
- How to implement data residency in my WordPress site
- How to add specific script to WordPress webpage that will working with user input and databases
- What is my error trying to create a new table in the database?
- Writing a function for WP Cron to run a SQL command daily
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- Display a number value from mysql query in WP
- Asking help regarding potential malware
- How to use WordPress header function and footer function and not load word press database
- “BS_” rows in postmeta table
- $wpdb->insert not working inside save_post tag
- Get Shortcode output to database for static post_content
- prevent anonymous access to WordPress site (non-admin site)
- WordPress UPDATE queries on MySQL database stuck
- add_action(‘the_content’, ‘my_plugin_content’) is null
- My wp database has been hacked
- Using wpdb to connect to a different database is not working
- Using id to show item
- dbDelta not CREATING TABLE
- How to allow URL with filename & extension in wordpress?
- 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?
- Bing/msn bots is heavily requesting random of my website
- How to update a database entry with a wordpress plugin?
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- “Fire Secure” menu item
- How wordpress handle urls present in db for external wp-content directory
- Remove special characters from filenames
- Accessing data from Google Cloud Datastore in WordPress site
- Login issue in WordPress
- Securing a plugin pop-up window
- Using Filters to modify contect – DB query results alwats appear fist
- Where is the HTML-handler part in the wpdb class?
- https rewrite not working for All in one security Brute force > rename login url
- No result after wpdb->insert
- WordPress Database Query works in phpMyAdmin but not in the code
- PHP message: WordPress database error Deadlock found when trying to get lock
- How can I store user preferences in WordPress and retreive them later?
- Enable plugins that are “not supported”