2020-02-07, 09:05 PM
Hey all,
I'm missing something really small here, I'm not sure what. This is my first time making a plugin so bear with me
In my is_installed function, I have the following code:
(echos are for testing)
And in my install I have this code (relating to the table):
(Hashes in place of SQL). The table creates normally in the database, however, my is_installed returns false every time, meaning you don't get the option to deactivate or uninstall the plugin.
Any thoughts?
Thanks,
Flinty
I'm missing something really small here, I'm not sure what. This is my first time making a plugin so bear with me
In my is_installed function, I have the following code:
global $db;
if($db->table_exists("flts_paypal")) {
echo 'True';
return true;
}
else {
echo 'false';
return false;
}
(echos are for testing)
And in my install I have this code (relating to the table):
$sql = "CREATE TABLE flts_paypal(#####)";
$db->write_query($sql);
(Hashes in place of SQL). The table creates normally in the database, however, my is_installed returns false every time, meaning you don't get the option to deactivate or uninstall the plugin.
Any thoughts?
Thanks,
Flinty