Changing WordPress core without hacking core

It is possible to set the site URL manually in the wp-config.php file. Add these two lines to your wp-config.php, where “example.com” is the correct location of your site define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); or Edit Functions.php update_option( ‘siteurl’, ‘http://example.com’ ); update_option( ‘home’, ‘http://example.com’ ); Try this Let me know any issue persist.

Hook when editing user

Yes, this is CORRECT add_action(‘edit_user_profile’, ‘limpiamosVariables’); function limpiamosVariables($user){ // My Code Sample update_option( “var_ios_token”, get_field(‘token_user’, ‘user_’.$user->id) ); };

Enque script based on url paramater

There are a couple of ways to do this. The easiest way is to use $_GET: if ( ( $hook == ‘post-new.php’ || $hook == ‘post.php’ ) && $_GET[‘action’] == ‘edit’ ) { // Enqueue your scripts here } You can also use the get_current_screen(); function instead of using a global variable.