سُلَيْمَان بْن دَاوُوْد
Jun 20, 20201 min read
Add CSS to Specific Page Only Wordpress
if( basename( get_page_template() ) == "page-newhome.php" ){ wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri().'/templates/...
if( basename( get_page_template() ) == "page-newhome.php" ){ wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri().'/templates/...
jQuery('.exportmember').click(function(){ var data = { action : 'get_all_portalresource', pageno :...
if( substr( get_post_meta($orderid,'plan_type',true) , 0,5) == 'listi') { $admin_new_ordermail = get_field('new_order_template_list...
function filter_plugin_updates( $value ) { unset( $value->response['instagram-slider-widget/instagram_slider.php'] ); return $value; }...
We are adding them under last 2 items there are two custom post types Events and Orders that we added to submenu of anothermenu...
This requires 2 pierces of code 1- In wp-config.php define( 'ALLOW_UNFILTERED_UPLOADS', true ); 2- Add following code in functions.php...
function uwc_new_address_one_placeholder( $fields ) { $fields['address_1']['placeholder'] = 'Address Line 1'; return $fields; }...
<div id="map"></div> <?php if(have_rows('distribution_locations')){ while (have_rows('distribution_locations')) { the_row(); $locations[]...
var tab = window.location.search; if(tab){ var tabs = tab.replace('?', ''); var tabandid = tabs.split('='); console.log(tabandid[0]);...
The following pulls all category from a custom taxonomy that has a slug as 'product-type' function getcategoryname_forproduct($postid){...
var getdirectmessage = false; if( jQuery('#message').is(':checked') ){ var getdirectmessage = true; }else{ var getdirectmessage = true;...
The functions.php should have a code like this Following code is used to localize the developer.js file function developer_pro_scripts()...
The MPDF is a handy tool to create the PDF's and you can create them as ease here is what we created 2 PDF and the code is as below You...
This is one of cool features like we have a site where we have surgeons stored in custom post type and each surgeon has its own detail...
Custom JS code enqueued in active theme functions.php var userdata = { 'action' : 'signin_member', 'username' :...
define('WP_CONTENT_DIR', '/var/www/html/learning-hub/wp-content/'); $headers[] = 'Content-Type: text/html; charset=UTF-8'; $headers[] =...
function exportleads_settings(){ add_submenu_page( 'options-general.php', __( 'Export Popup Leads', 'consumeracquision' ), __( 'Export...
<?php /* Plugin Name: Mustek WooCommerce Stock Updater Plugin URI : https://api.mustek.co.za Description: This plugin is used to update...
function comcast_woocommerce_billing_fields($fields) { $fields['gx_name'] = array( 'label' => __('Billing Contact for GXS',...
add_filter('woocommerce_checkout_fields', 'comcast_woocommerce_checkout_fields'); function comcast_woocommerce_checkout_fields( $fields )...