separated admin module
This commit is contained in:
parent
88f11001a4
commit
1e290a3af1
20
gcal-import-admin.php
Normal file
20
gcal-import-admin.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* Display the admin table
|
||||
* may go to a separate file eventually
|
||||
*
|
||||
* @since 0.1.0
|
||||
*
|
||||
*/
|
||||
|
||||
function gcal_import_admin()
|
||||
{
|
||||
global $wpdb;
|
||||
$table = $wpdb->prefix.GCAL_TABLE;
|
||||
|
||||
// we MUST protect queries,
|
||||
// see https://codex.wordpress.org/Class_Reference/wpdb#Protect_Queries_Against_SQL_Injection_Attacks
|
||||
// $sql = $wpdb->prepare( 'INSERT INTO $table ... ' , value_parameter[, value_parameter ... ] );
|
||||
|
||||
}
|
||||
|
||||
|
Reference in a new issue