How to get variables from fucntion.php to my plugin files

There is three way to use function.php file variable into plugin file. Using global. Make sure you globalize it first. global $my_variable; echo $my_variable; I recommend is using WordPress built-in filter mechanism add_filter. You add the filter in your functions.php file and apply it where needed. In functions.php: add_filter( ‘my_variable’, ‘return_my_variable’ ); function return_my_variable( $arg … Read more

Can a plugin still effect a site even after deletion?

Yes, a plugin that does not properly clean up after itself can continue to affect your site even after deletion. It can leave stuff behind in the database, or make alterations to your .htaccess file, which is probably the case in your scenario. You might need to restore your .htaccess file – look here for … Read more

Last modified field for user profile?

As mentioned in the comments, you can use the Plugin and Metadata APIs to attach some functionality to the ‘profile_update’ action such that whenever a user’s profile information receives an update, custom user-metadata is set to the time of the update: function wpse216609_update_profile_modified( $user_id ) { update_user_meta( $user_id, ‘wpse216609_profile_updated’, current_time( ‘mysql’ ) ); } add_action( … Read more