This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Save the base64 encoded image in WP. | |
* | |
* @param string $title Image title without extension. | |
* @param string $base64_img Base64 encoded image string. | |
*/ | |
function flowmattic_save_base64_image( $title, $base64_img ) { | |
// Upload dir. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_logout', 'flowmattic_custom_logout' ); | |
function flowmattic_custom_logout( $user_id ) { | |
$user_details = array(); | |
$current_user = get_user_by( 'ID', $user_id ); | |
$user_details['username'] = $current_user->user_login; | |
$user_details['user_email'] = $current_user->user_email; | |
$user_details['user_first_name'] = $current_user->user_firstname; | |
$user_details['user_last_name'] = $current_user->user_lastname; | |
$user_details['user_display_name'] = $current_user->display_name; |
OlderNewer