Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $wpdb;
- $sql_data = array(
- 'action_time' => strtotime( date( 'Y-m-d H:i:s', strtotime( '+' . get_option( 'gmt_offset' ) . ' hours' ) ) ),
- 'action_user' => get_current_user_id(),
- 'action' => esc_attr( $action ),
- 'action_generator' => esc_attr( $action_generator ),
- 'action_description' => esc_attr( $action_description ),
- );
- $wpdb->insert( $wpdb->prefix . 'action_logs', $sql_data );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement