Login
Remember
Register
PHPOnlineSupport
Questions
Unanswered
Tags
Categories
Ask a Question
Ask a Question
How do I include $wpdb in wordpress plugin?
0
votes
3.7k
views
asked
Nov 2, 2018
in
Wordpress
by
Suraj
How do I include $wpdb in wordpress plugin?
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1
Answer
0
votes
answered
Nov 2, 2018
by
Sampath
global $wpdb, $table_prefix;
if(!isset($wpdb))
{
include_once(ABSPATH.'wp-config.php');
include_once(ABSPATH.'wp-includes/wp-db.php');
}
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
0
votes
0
answers
1.0k
views
How can I put a widget like a slider in Visual Composer?
asked
Aug 26, 2016
in
Plugins
by
Philip
visual-composer
wordpress
protect
slider
+1
vote
1
answer
1.6k
views
Remove prefix in the URL of category page - Wordpress
asked
Jul 8, 2016
in
Wordpress
by
Paul Johnson
wordpress
category
url
0
votes
0
answers
3.0k
views
How to Remove Menu Items in Admin Depending on User Role?
asked
Jul 20, 2018
in
Wordpress
by
anonymous
wordpress
cms
+1
vote
1
answer
1.9k
views
Mass Exclude/Include Images in Magento
asked
Jun 22, 2016
in
Magento
by
Ronnie
magento
exclude
include
image
0
votes
1
answer
11.4k
views
How to cancel/abort an Ajax request already happened, but that I have not yet received the response from?
asked
Jul 28, 2017
in
Jquery
by
Suni
ajax
request
cancel
+1
vote
1
answer
1.2k
views
How can I delete test orders from magento v1.9.2
asked
May 24, 2016
in
Modules
by
Jacob
magento
order
All categories
General
(56)
CMS
(21)
Wordpress
(19)
Plugins
(5)
Themes
(2)
Drupal
(1)
Joomla
(1)
Frameworks
(21)
eCommerce
(58)
IOT - Internet Of Things
(10)
Javascript
(10)
Databases
(5)
Categories
All categories
General
(56)
CMS
(21)
Wordpress
(19)
Plugins
(5)
Themes
(2)
Drupal
(1)
Joomla
(1)
Frameworks
(21)
eCommerce
(58)
IOT - Internet Of Things
(10)
Javascript
(10)
Databases
(5)
Most popular tags
magento
php
wordpress
wp
laravel
category
database
module
product
arduino
kohana
js
jquery
admin
date
url
sing
birds
json
javascript
cms
cache
error
configurable
love
mac
xbee
serial1
serial
seo
encrypt
recaptha
phalcon
truncate
fishpig
include
backend
function
email
plugin
post
arduinojson
popup
mongodb
security
migrate
editor
decrypt
python
iot
map
shipping
password
core
log
mage
pear
string
replace
extension
import
php7
form
order
day
google
image
youtube
https
http
customer
syntaxerror
datatables
nested
x-ctu
xctu
pan-id
mesh
coordinator
esp
baud
esp8266
esp32
path-issue
site-links
adblocker
qr-code
barcode
samsung
newsletter
feed
auto-numbering-column
datatable
admin-bar
adminbar
toolbar
address16
address64
301
302
...