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
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 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 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 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 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] : ''; |
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
const { applyFilters, doAction, addFilter } = wp.hooks; | |
let some_option = applyFilters('some-option', [{ label: 'Some Option' }]); | |
addFilter('some-option', 'post-grid/post-grid/queryPrams', function (options) { | |
//console.log(options); | |
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
Done | |
https://iconsax.io/ | |
https://humbleicons.com/ | |
https://www.mingcute.com/ | |
https://sargamicons.com/ | |
https://licons.xyz/ | |
https://feathericons.com/ | |
https://experience-japan.info/ | |
https://akaricons.com/ | |
https://flagpack.xyz/ |
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
add_filter('wcps_slider_query_args', 'wcps_slider_query_args_20200303', 10, 2); | |
function wcps_slider_query_args_20200303($query_args, $args) | |
{ | |
// search by keyword | |
$query_args['author__in'] = [2]; | |
return $query_args; | |
} |
NewerOlder