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 meeeksaas_add_to_cart_text_override($text){ | |
return esc_html__('Buy Now', 'meeeksaas'); | |
} | |
add_filter('meeeksaas_pricing_add_to_cart_text', 'meeeksaas_add_to_cart_text_override'); | |
// Tutorial made for Meeek SaaS: https://codecanyon.net/item/meeek-bio-links-saas-wordpress/46935773 |
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 meeeksaas_verified_owner_text_override() { | |
// Your Own text here | |
$new_text = __('Verified User', 'meeek-saas'); | |
return esc_html($new_text); | |
} | |
add_filter( 'meeeksaas_verified_owner_text', 'meeeksaas_verified_owner_text_override'); |
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 dirToArray($dir) { | |
$result = array(); | |
$cdir = scandir($dir); | |
foreach ($cdir as $key => $value) | |
{ | |
if (!in_array($value,array(".",".."))) | |
{ | |
if (is_dir($dir . DIRECTORY_SEPARATOR . $value)) |
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 | |
// Getting the country code (For example for "United States" the code is "US") | |
// Usage: get_country_flag_by_country_name('United States'); | |
function get_country_flag_by_country_name($country_name = ''){ | |
$all_countries = array( | |
'Afghanistan' => 'AF', | |
'Aland Islands' => 'AX', | |
'Albania' => 'AL', | |
'Algeria' => 'DZ', |
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
fab fa-500px | |
fab fa-accessible-icon | |
fab fa-accusoft | |
fab fa-acquisitions-incorporated | |
fas fa-ad | |
fas fa-address-book | |
fas fa-address-card | |
fas fa-adjust | |
fab fa-adn | |
fab fa-adobe |
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
/*LOGIN MODAL */ | |
var ModalEffects = (function() { | |
function init_modal() { | |
var overlay = document.querySelector( '.modeltheme-overlay' ); | |
var overlay_inner = document.querySelector( '.modeltheme-overlay-inner' ); | |
var modal_holder = document.querySelector( '.modeltheme-modal-holder' ); | |
var html = document.querySelector( 'html' ); | |
[].slice.call( document.querySelectorAll( '.modeltheme-trigger' ) ).forEach( function( el, i ) { |
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 | |
// Subtab in Social Media tab | |
# Section: Social Shares | |
$this->sections[] = array( | |
'subsection' => true, | |
'icon' => 'el-icon-share', | |
'title' => __('Social Shares', 'angro'), | |
'fields' => array( |
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 | |
add_action('dokan_new_product_before_product_area','ibid_dokan_before_popup_form'); | |
function ibid_dokan_before_popup_form(){ | |
?> | |
<div class="my-class relative">Hello There</div> | |
<style type="text/css"> | |
.my-class.relative { | |
position: absolute; | |
top: 20px; | |
padding-left: 20px; |
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 | |
// For iBid Auctions theme: https://themeforest.net/item/ibid-multi-vendor-auctions-woocommerce-theme/24923136 | |
function if_vendor_has_active_auctions($vendor_id){ | |
$args = array( | |
'post_type' => 'product', | |
'post_status' => 'publish', | |
'author' => $vendor_id, |
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 | |
// For iBid Auctions theme: https://themeforest.net/item/ibid-multi-vendor-auctions-woocommerce-theme/24923136 | |
// WP List Table: Column | |
add_action('manage_product_posts_custom_column', 'ibid_show_columns'); | |
function ibid_show_columns($name) { | |
global $post; | |
switch ($name) { | |
case 'shipping_country': |
NewerOlder