Hot answers tagged

2

Android Push Notification requires you to have GCM Keys and Project ID which needs to be registered on Google Developer console. I am assuming you are able to get your users registration IDs and stored in a table. To send Android Push Notification create a function somewhere in your functions file function AndroidPushNotification($registration_ids, $...


1

You need to turn WP_DEBUG on in your wp-config.php: define( 'WP_DEBUG', true ); That'll help a lot with working out where that 500 error is coming from. Based on the PHP versions you've mentioned, I'm 99.999% sure that the error is due to a feature that isn't available in PHP 5.2.17. You're probably looking at shorthand array notation (eg. $array = []; - ...


1

You can use the user_register hook to capture user information after their details are saved to the database.


1

Look at this code public function column_default( $item, $column_name ) { switch ( $column_name ) { case 'address': case 'city': return $item[ $column_name ]; default: return print_r( $item, true ); //Show the whole array for.... } } Since you are only trying to render user_id , browser and ...


1

Down- and uploading CSVs is a tough one that forces you to make a bunch of steps manually which is prone to human error (and typos). My suggestion would be to do something that you can battletest locally in a local copy of your DB. Steps to follow: Make a database dump using the mysqldump tool and use scp to copy it to you locally Pull up a local WP ...


1

Two things, at least: It looks like you need to declare the global $wpdb and you're using $wpdb->insert() incorrectly. The insert() method doesn't take your SQL query but a list of variables. It then create the SQL for you. See here You can execute SQL directly but it's a different process.



Only top voted, non community-wiki answers of a minimum length are eligible