Skip to content

Instantly share code, notes, and snippets.

View WajahatAnwar's full-sized avatar

Wajahat Anwar WajahatAnwar

  • Ikarobar
  • Lahore, Pakistan
View GitHub Profile
@rifkyfu32
rifkyfu32 / Allow everyone to upload profile registration pages.txt
Last active November 30, 2021 22:03
Customization allow everyone to upload profile on registration pages - Ultimate Member 2.0 +
1.Copy the bellow code in your theme's function.php file. Should be in public_html/wp-content/themes/your-themes-name/function.php
/**
* Ultimate Member 2.0 - Customization
* Description: Allow everyone to upload profile registration pages.
*/
add_filter("um_user_pre_updating_files_array","um_custom_user_pre_updating_files_array", 10, 1);
function um_custom_user_pre_updating_files_array( $arr_files ){
if( is_array( $arr_files ) ){
@gokulkrishh
gokulkrishh / media-query.css
Last active April 26, 2024 10:32
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */