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
^\s*$\n |
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
add_action('wcps_layout_element_post_title', 'wcps_layout_element_post_title_20200331', 90); | |
function wcps_layout_element_post_title_20200331($args) | |
{ | |
$product_id = isset($args['product_id']) ? $args['product_id'] : ''; | |
$elementData = isset($args['elementData']) ? $args['elementData'] : array(); | |
$element_index = isset($args['element_index']) ? $args['element_index'] : ''; | |
$product = new WC_Product($product_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
add_action('wcps_layout_element_post_title', 'wcps_layout_element_post_title_20200331', 90); | |
function wcps_layout_element_post_title_20200331($args) | |
{ | |
$product_id = isset($args['product_id']) ? $args['product_id'] : ''; | |
$elementData = isset($args['elementData']) ? $args['elementData'] : array(); | |
$element_index = isset($args['element_index']) ? $args['element_index'] : ''; | |
$product = new WC_Product($product_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
function post_grid_query_args_20200429($query_args, $args) | |
{ | |
$current_post_id = get_the_ID(); | |
$taxonomy = "category"; | |
$post_categories = get_the_terms($current_post_id, $taxonomy); | |
$tax_query = isset($query_args['tax_query']) ? $query_args['tax_query'] : []; |
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
Remove all DS_Store files | |
git rm --cached -f *.DS_Store |
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
{"kind":"webfonts#webfontList","items":[{"family":"ABeeZee","variants":["regular","italic"],"subsets":["latin","latin-ext"],"version":"v22","lastModified":"2022-09-22","files":{"regular":"http://fonts.gstatic.com/s/abeezee/v22/esDR31xSG-6AGleN6tKukbcHCpE.ttf","italic":"http://fonts.gstatic.com/s/abeezee/v22/esDT31xSG-6AGleN2tCklZUCGpG-GQ.ttf"},"category":"sans-serif","kind":"webfonts#webfont"},{"family":"Abel","variants":["regular"],"subsets":["latin"],"version":"v18","lastModified":"2022-09-22","files":{"regular":"http://fonts.gstatic.com/s/abel/v18/MwQ5bhbm2POE6VhLPJp6qGI.ttf"},"category":"sans-serif","kind":"webfonts#webfont"},{"family":"Abhaya Libre","variants":["regular","500","600","700","800"],"subsets":["latin","latin-ext","sinhala"],"version":"v13","lastModified":"2022-09-22","files":{"500":"http://fonts.gstatic.com/s/abhayalibre/v13/e3t5euGtX-Co5MNzeAOqinEYj2ryqtxI6oYtBA.ttf","600":"http://fonts.gstatic.com/s/abhayalibre/v13/e3t5euGtX-Co5MNzeAOqinEYo23yqtxI6oYtBA.ttf","700":"http://fonts.gstatic.com |
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
function custom_wpkses_post_tags( $tags, $context ) { | |
if ( 'post' === $context ) { | |
$tags['iframe'] = array( | |
'src' => true, | |
'height' => true, | |
'width' => true, | |
'frameborder' => true, |
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
$team_member_id = get_the_id(); | |
$post_data= get_post($team_member_id); | |
$content = isset($post_data->post_content) ? $post_data->post_content : ''; | |
// echo $content | |
$team_member_data = get_post_meta($team_member_id,'team_member_data', true); | |
$member_image_id = isset($team_member_data['member_image']) ? $team_member_data['member_image'] : ''; | |
$member_image_arr = wp_get_attachment_image_src( $member_image_id, $thumb_size ); | |
$member_image_url = isset($member_image_arr[0]) ? $member_image_arr[0] : ''; |
NewerOlder