Skip to content

Instantly share code, notes, and snippets.

View nayeemch's full-sized avatar
🏆
Dev

Nayeem Parvez Chowdhury nayeemch

🏆
Dev
View GitHub Profile
@nayeemch
nayeemch / Download-Shopify-CDN-Assets.md
Created October 24, 2020 16:04 — forked from lexthor/Download-Shopify-CDN-Assets.md
Download all Shopify CDN assets from a store

Instructions

  1. Go to your Shopify admin/settings/files page
  2. Open your browser Dev tools, go to the console
  3. Paste the content of the console_download_list.js file, and press enter
  4. Your browser will automatically fetch each page and download the list with the links of all the files on the CDN.
  5. Using your preffered code editor, edit the HTML file by adding each link in img tag.
  6. Open the HTML file you just edit in a browser then right click-save as. It will download the HTML file again along with all the images in the location you specify.
@nayeemch
nayeemch / tutor-lms-change-default-course-base-slug
Created July 11, 2020 09:12
This code will help you to change base slug `courses` to your preferred slug, replace `example-course-slug` with your own slug.
add_filter('tutor_courses_base_slug', 'change_tutor_course_slug');
/**
* @param $slug
* @return string
*/
if ( ! function_exists('change_tutor_course_slug')){
function change_tutor_course_slug($slug){
$slug = 'example-course-slug';
return $slug;
@nayeemch
nayeemch / registration.php
Created July 8, 2020 10:27
Add fields to student registration forms of Tutor LMS, download and place this file to `theme/tutor/dashboard/` by overriding registration.php
<?php
/**
* @package TutorLMS/Templates
* @version 1.4.3
*
* First of all, download the below file and place it to your theme/tutor/dashboard/
* So it will override and phone number field will be available.
*/
?>
@nayeemch
nayeemch / automatically-approve-tutor-lms-instructor.php
Created May 8, 2020 19:14
Automatically approve Tutor LMS instructor right after register. No manual approval required.
/**
* Required Tutor LMS v.1.6.0
*/
add_action('tutor_new_instructor_after', 'approve_new_instructor_immediately');
/**
* @param $instructor_id
*
* Immediately approve instructor after register
*/
@nayeemch
nayeemch / tutor-lms-add-remove-course-level.php
Created April 7, 2020 11:34
Add, remove course levels from Tutor LMS Plugin
add_filter('tutor_course_level', 'add_custom_course_level_tutor');
/**
* @param $levels
* @return mixed
*
* Add, remove course levels
*/
if ( ! function_exists('add_custom_course_level_tutor')) {
@nayeemch
nayeemch / media-query.css
Created March 16, 2018 05:34 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS