Try:
register_activation_hook ( __FILE__, array( new MemorialCandles(), 'dbInstall' ) );
Or define dbInstall as ´static´ and use that to set the table name instead the constructor, which I think is the best approach.
Related Posts:
- How to set and use global variables? Or why not to use them at all
- WordPress Theme variables scope
- $wpdb->get_results(…) returns empty array despite correct query
- Does an activated plugin automatically mean its methods are available to other WP functions?
- Where to get information about array fields in $_REQUEST?
- $wpdb->delete column values IN ARRAY()?
- queries inside of a class
- Filter the blog title displayed in the header
- How to display only first value of database column in WordPress
- Export WordPress Table to CSV from page
- Ajax $wpdb not returning table data
- Converting MYSQL to WordPress $WPDB
- How to Fetch values from WP database based on selected option value by onchange using PHP?
- $wpdb->flush(); breaks the loop
- Why is variable not working on custom sql query using wpdb?
- Get stock by custom meta field on all Woocommerce variable products
- Display fields as values in array from external SQL DB
- Can’t get wp_insert_post to work
- Trying to establish connection to External Database
- Call global variable array() in woocommerce child/template
- Getting id of poll from WP database
- How to insert a single row to WP database table?
- WSoD being caused by this piece of code
- I want to select the from values from database in WordPress? [closed]
- $wpdb->update with multiple parameters gives error
- Update results, Before deleting the related category [closed]
- How WordPress reacts to a lack of memory of the server [closed]
- wp query foreach deleting record returning only first or last item
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- $wpdb->insert() does not Insert record in a table
- Custom array from a query only write the last row of the query
- Error using WordPress $wpdb object to get result from custom table
- How to retrieve the data from the sever and displaying it in a page?
- Querying Database with wpdb
- Can’t update multiple rows with $wpdb query
- Mixing variables into an array when inserting values
- Where is this function’s callback getting its arguments from?
- how to get serialized post meta
- Use $wpdb or other PHP script method to find/replace in WP database
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- Basic wpdb update question
- I can’t update my data through $wpdb
- wpdb Cannot Update column in Database
- Output: “Array”
- PHP -> SQL Query with Summing
- Delete database record using plugin from admin panel
- Cannot access $wpdb, comes back NULL
- Wpdb get->results to out the the month from the db
- How do I prepare strings for insertions as values into a MySQL table?
- WPDB – Read and write value from / to database
- form $_post action value gets truncated after it passes through two forms
- Why my query does not run with prepare
- ‘global’ not working in wordpress?
- How to Generate a list of Most Commented post?
- Why won’t this wpdb get_results query return results?
- wpdb getting avatars and author url
- Undefined variable: row?
- Add row to custom database Table and delete all rows older than 1 day
- select a single val though a table in wordpress
- WordPress SQL JOIN query
- populate select options from extra mysql table data
- WordPress get last inserted user id
- Add posts to custom table in database instead of wp_posts
- Convert a column of a table containing an Array as response in HTML
- Creating multiple tables with Plugin
- Custom global variable not working in function
- Hide payment method based on user role AND minimum cart value
- Conditional formatting on data fetched from MYSQL
- Using wpdb to connect to a different database is not working
- Looping through custom data in a custom table to display all items in a post
- Displaying SQL query result from user input via wpdb
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- Modify post image in full size
- How to grab data from input and store it into custom table in database?
- Rewrite SQL query as a prepared statement and use in foreach loop
- How to return count of items found in SQL query
- Update user_email via php – WP 4.7
- Unable to pass variable to database
- Passed variable gets undefined variable error on insert on next page
- Run insert if no entry otherwise run update with ajax
- How to fetch results from database
- Using the same shortcode to show any table from the database
- AJAX with Selectbox Plugins (Select2, Chosen, Selectize)
- Querying multiple meta_keys in WordPress SQL query
- key( $GLOBALS[‘wp_registered_sidebars’] ) is always showing the same value
- MySQL database migration to WordPress
- How do you get a reference to $wpdb in a PHP script
- Insert into db with foreach problem
- Suppress errors when using global function
- How to display inputted data in Ajax without button or click event
- how to display tables via ajax
- Changing regular db connection to $wpdb
- Can’t send form data to wpdb when URL has query string
- $wpdb how to make a record lookup
- How to get data (not value or name) from radio options to POST to database
- Error resetting database index using ALTER TABLE in $wpdb->query
- WordPress / PHP: Check if column has value and then check if value in array
- Putting form result in my database
- SQL – How to echo out inside of where statement
- How can I update a value of a field depending on outside source?