Skip to content

Instantly share code, notes, and snippets.

View pickplugins's full-sized avatar
🏠
Working from home

PickPlugins pickplugins

🏠
Working from home
View GitHub Profile
### Job Board Manager by [http://pickplugins.com](http://pickplugins.com)
* [Live Demo](https://www.pickplugins.com/demo/job-board-manager/?ref=wordpress.org)
* [Documentation](https://www.pickplugins.com/documentation/job-board-manager/?ref=wordpress.org)
* [Support](https://www.pickplugins.com/support/?ref=wordpress.org)
**Advance Job Archive**
You can display list of jobs via shortcode `[job_bm_archive]` you can display job list by filtering query arguments via filter hook, this can help you to build external search form to apply form data to filter jobs. you can also remove existing job list elements and add your own elements via action hook.
@pickplugins
pickplugins / gist:dbd726ddf7bb5f0c3c4c0b6cc297ee34
Created August 26, 2019 07:05
Post Grid ajax query filter
function post_grid_filter_query_args($query_arg, $grid_id){
if( isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ){
$HTTP_REFERER = $_SERVER['HTTP_REFERER'];
$HTTP_REFERER = str_replace('https://','', $HTTP_REFERER);
$HTTP_REFERER = str_replace('http://','', $HTTP_REFERER);
$HTTP_REFERER = explode('/', $HTTP_REFERER);
$response = wp_remote_get($category_url, array('timeout' => 2));
if ( is_wp_error( $response ) ) {
return;
}
function post_grid_item_post_permalink_20200416($link){
$post_id = get_the_id();
$download_url = get_field( "download_url", $post_id );
$link = !empty($download_url) ? $download_url : $link;
return $link;
}
add_filter('post_grid_item_post_permalink','post_grid_item_post_permalink_20200416');
add_action('post_grid_layout_element_excerpt', 'post_grid_layout_element_excerpt_land');
function post_grid_layout_element_excerpt_land($args){
$land = get_post_meta ( get_the_ID(), 'land', true);
echo '<p>'.$land.'</p>';
}
<?php
/**
* WooCommerce Extra Feature
* --------------------------
*
* Add custom fee to cart automatically
*
*/
function woo_add_cart_fee() {
@pickplugins
pickplugins / tailwindcss classes list
Created November 21, 2020 12:24
tailwindcss classes list
.ease-linear
.duration-75
.duration-100
.duration-150
.duration-200
.duration-300
.duration-500
.duration-700
.duration-1000
.delay-75
["ease-linear","duration-75","duration-100","duration-150","duration-200","duration-300","duration-500","duration-700","duration-1000","delay-75","delay-100","delay-150","delay-200","delay-300","delay-500","delay-700","delay-1000","transition","bg-auto","bg-cover","bg-contain","bg-bottom","bg-top","bg-center","bg-left","bg-left-bottom","bg-left-top","bg-right","bg-right-bottom","bg-right-top","bg-fixed","bg-local","bg-scroll","bg-no-repeat","bg-repeat","bg-repeat-x","bg-repeat-y","bg-repeat-round","bg-repeat-space","bg-opacity-0","bg-opacity-25","bg-opacity-50","bg-opacity-75","bg-opacity-100","bg-transparent","bg-current","bg-black","bg-white","bg-gray-100","bg-gray-200","bg-gray-300","bg-gray-400","bg-gray-500","bg-gray-600","bg-gray-700","bg-gray-800","bg-gray-900","bg-red-100","bg-red-200","bg-red-300","bg-red-400","bg-red-500","bg-red-600","bg-red-700","bg-red-800","bg-red-900","bg-orange-100","bg-orange-200","bg-orange-300","bg-orange-400","bg-orange-500","bg-orange-600","bg-orange-700","bg-orange-800",