Creating a user’s own folder on user registration

You can use the user_register action to hook into the register proces and then create the user directory with wp_mkdir_p. function create_user_dir($user_id) { $user_info = get_userdata( $user_id ); $upload_dir = wp_upload_dir(); $user_dir = $upload_dir[‘basedir’] . ‘/user_dirs/’ . $user_info->user_login; wp_mkdir_p($user_dir); } add_action( ‘user_register’, ‘create_user_dir’); This example makes a directory in uploads/user_dirs. http://codex.wordpress.org/Plugin_API/Action_Reference/user_register http://codex.wordpress.org/Function_Reference/wp_mkdir_p

Is there a way for a plugin to add an attribute to the tag of a theme?

You can probably use the language_attributes filter (from the language_attributes() function) to add it. It should receive an output like lang=”en” and you can add to it before printing to the <html> tag: add_filter( ‘language_attributes’, function( $attr ) { return “{$attr} manifest=\”manifest.appcache\””; } ); or without a anonymous function add_filter( ‘language_attributes’, ‘wpse140730_add_manifest_to_language_attributes’ ); function wpse140730_add_manifest_to_language_attributes($output) … Read more

How to avoid plugin name conflicts from the upgrade notifier?

You can remove you plugin from the updateble list with: add_action( ‘plugins_loaded’, function(){ add_filter( ‘site_transient_update_plugins’, function ( $value ) { if( isset( $value->response[‘google-analytics/google-analytics.php’] ) ) unset( $value->response[‘google-analytics/google-analytics.php’] ); return $value; }); }); Adding this filter will eliminate our homonymous plugin altogether from update checks. And it supposes that we are doing the updates manually via … Read more