top of page

Add CSS to Specific Page Only Wordpress

if( basename( get_page_template() ) == "page-newhome.php" ){ wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri().'/templates/...

Creating a AJAX Call (Syntax)

jQuery('.exportmember').click(function(){ var data = { action : 'get_all_portalresource', pageno :...

Stop a Plugin Update on wordpress

function filter_plugin_updates( $value ) { unset( $value->response['instagram-slider-widget/instagram_slider.php'] ); return $value; }...

SVG Upload on Wordpress Site

This requires 2 pierces of code 1- In wp-config.php define( 'ALLOW_UNFILTERED_UPLOADS', true ); 2- Add following code in functions.php...

Add Custom Marker to Google Map

<div id="map"></div> <?php if(have_rows('distribution_locations')){ while (have_rows('distribution_locations')) { the_row(); $locations[]...

Reading Query String / $_GET in JavaScript

var tab = window.location.search; if(tab){ var tabs = tab.replace('?', ''); var tabandid = tabs.split('='); console.log(tabandid[0]);...

Get Posts Category name outside of a Loop

The following pulls all category from a custom taxonomy that has a slug as 'product-type' function getcategoryname_forproduct($postid){...

Upload Image with Ajax in wordpress

The functions.php should have a code like this Following code is used to localize the developer.js file function developer_pro_scripts()...

Using MPDF to create Professiona Certificate

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...

Using Dynamic Values in Contact Form 7

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...

User Login Programmatically in WordPress

Custom JS code enqueued in active theme functions.php var userdata = { 'action' : 'signin_member', 'username' :...

Export CSV from Custom Table in wordpress

function exportleads_settings(){ add_submenu_page( 'options-general.php', __( 'Export Popup Leads', 'consumeracquision' ), __( 'Export...

Custom Cron Schedules on a Plugin

<?php /* Plugin Name: Mustek WooCommerce Stock Updater Plugin URI : https://api.mustek.co.za Description: This plugin is used to update...

Change Placeholder of Order Notes on Woo Commerce

add_filter('woocommerce_checkout_fields', 'comcast_woocommerce_checkout_fields'); function comcast_woocommerce_checkout_fields( $fields )...

© 2020 by syednazrulhassan

bottom of page