This file contains hidden or 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 | |
/** | |
* Display additional fields data on booking details page, fields added using | |
* Checkout Field Editor (Checkout Manager) for WooCommerce plugin | |
* @author Abdul Awal Uzzal | |
* @url abdulawal.com | |
*/ | |
function tnc_display_additional_checkout_info($booking_id){ |
This file contains hidden or 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
/* | |
* Register Missing Post Types | |
* Description: This code will check database for all the post types and create the ones that are not registered using register_post_type() function. | |
* Author: Abdul Awal Uzzal | |
* Author URI: https://abdulawal.com/ | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
*/ | |
function tnc_register_unavailable_post_types(){ | |
global $wpdb; |
This file contains hidden or 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 | |
/** | |
* Hide List of folders from public with php | |
* Article url: http://abdulawal.com/hide-list-of-folders-from-public-with-php/ | |
*/ | |
$access = $_REQUEST['access']; | |
if($access == "admin"){ | |
$dirs = array_filter(glob('*'), 'is_dir'); | |
echo "<ul>"; |
This file contains hidden or 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 | |
/** | |
* File Name: extract-data-from-multi-select.php | |
* Description: A Simple way to Extract Data from a Multi Select Input and Store in a variable with spearating each values with comma. | |
* Author: Abdul Awal Uzzal | |
* Author Url: abdulawal.com | |
* Article: http://themencode.com/?p=435 | |
*/ | |
if(isset($_POST['select_name'])){ // select_name will be replaced with your input filed name |
NewerOlder