This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to display an error message and exit | |
function display_error() { | |
echo "Error: $1" | |
exit 1 | |
} | |
# Function to prompt for input with a given message | |
function prompt_input() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function recursiveRename($directory, $search, $replace) { | |
// Get the list of files and directories in the current directory | |
$contents = scandir($directory); | |
if ($contents === false) { | |
return; // Unable to open directory, return | |
} | |
foreach ($contents as $item) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100% work for any version.. | |
--- Activation Key --- | |
Name : KARAN PC | |
Serial : | |
AXOQM-RDMFS-ZMNOU-QTIBC | |
AXMQU-RFMKG-LJJAZ-JMXHF | |
AXNQH-RSMOQ-RIJJQ-YQXHE | |
AXOQV-RYMDN-XLEHP-AEGEJ | |
AXZQT-RGMUD-LINUP-ZTEGJ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
class Skin_Simple extends Skin_Base { | |
/** | |
* Skin base constructor. | |
* | |
* Initializing the skin base class by setting parent widget and registering |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom Added to your Cart Message | |
*/ | |
add_filter( 'wc_add_to_cart_message_html', 'shahadul878_custom_added_to_cart_message' ); | |
function shahadul878_custom_added_to_cart_message() { | |
$message = 'You cool product is in the cart!' ; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* Add Supscript On Price | |
* | |
***/ | |
if ( ! function_exists( 'apsape_add_sup_decimals_to_pricing' ) ) { | |
function apsape_add_sup_decimals_to_pricing ( $price ) { | |
if ( ! is_admin() ) { // Check that we're not in the admin | |
$price = strip_tags( $price ); | |
$price_exploded = explode( '–' , $price ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Change number of products that are displayed per page (category page) | |
*/ | |
add_action('pre_get_posts','sanji_woocommerce_archive',9999); | |
function sanji_woocommerce_archive($query) { | |
if (!is_admin() && $query->is_main_query() && is_shop() || is_woocommerce() || is_product_category() || is_product_tag()) { | |
$query->set( 'posts_per_page', '12' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$frozen_body_font_get = cs_get_option('frozen_body_font'); | |
$frozen_heading_font_get = cs_get_option('frozen_headding_font'); | |
function frozen_crazycafe_body_gf_url() { | |
$font_url = ''; | |
$frozen_body_font_get = cs_get_option('frozen_body_font'); | |
if(array_key_exists('family', $frozen_body_font_get)) { | |
$frozen_body_font_get_family = $frozen_body_font_get['family']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_your_own_function_name( $atts, $content = null ) { | |
extract( shortcode_atts( array( | |
'text' => '', | |
'type' => '' | |
), $atts ) ); | |
return '<div class="alert alert-'.esc_attr($type).'" role="alert">'.esc_attr($text).'</div> | |
'; |