Skip to content

Instantly share code, notes, and snippets.

View ashrafbd1496's full-sized avatar

Md Ashraf Uddin ashrafbd1496

View GitHub Profile
<?php
//save theme active time
function my_theme_activation_init() {
// Check if already saved the activation date & time
// to prevent over-writing if user deactive & active theme
// multiple time
if(!get_option('mytheme_activation_time', false)){
@asif5057
asif5057 / customizer-options.php
Last active August 18, 2022 05:02
Wordpress: Customizer options for logo upload, color schemes for background color,footer copyright text option.
<?php
/*
* @ include file in theme
* Register different customizer options
* @Logo option
* @footer copyright option
* @Color schemes for navigation and footer
*/
function customtheme_customize_register( $wp_customize ){