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 $get_rates_list = get_field('rates'); | |
if ($get_rates_list) { ?> | |
<table class="rates-table"> | |
<thead> | |
<?php foreach ($get_rates_list as $rate) { ?> | |
<tr> | |
<td><h3 class="rate_label"><?php echo $rate['rate_title'];?></h3></td> | |
</tr> |
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
npm list -g --depth=0 |
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
// Turn on output buffering | |
ob_start(); | |
// Get the ipconfig details using system commond | |
system('ipconfig /all'); | |
// Capture the output into a variable | |
$mycom = ob_get_contents(); | |
// Clean (erase) the output buffer | |
ob_clean(); |
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
/** | |
* Get url by page template | |
*/ | |
function _xe_get_page_template_url($template_name) { | |
$url = null; | |
$pages = get_pages(array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => $template_name |
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 | |
class comment_walker extends Walker_Comment { | |
var $tree_type = 'comment'; | |
var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' ); | |
// constructor – wrapper for the comments list | |
function __construct() { ?> | |
<section class="comments-list"> |