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 integral { | |
color: #c38392; | |
background-color: #222; | |
} |
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 the preview step. Code goes in theme functions.php or custom plugin. | |
* @param array $steps | |
* @return array | |
*/ | |
function custom_submit_resume_steps( $steps ) { | |
unset( $steps['preview'] ); | |
return $steps; | |
} |
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
#!/bin/bash | |
MYSQL_IP="127.0.0.1" | |
PORT=$(docker-compose port mysql 3306) | |
DINGHY_IP=$(dinghy ip) | |
PORT=${PORT/0.0.0.0:/} | |
FILE="/tmp/connection.spf" | |
cat > $FILE <<- EOM | |
<?xml version="1.0" encoding="UTF-8"?> |
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 | |
add_action( 'add_meta_boxes', function() { | |
remove_meta_box( 'course-wc-product', 'course', 'side' ); | |
add_meta_box( 'course-wc-product', __( 'WooCommerce Product', 'woothemes-sensei' ), function() { | |
if ( ! function_exists( 'Sensei' ) ) { return; } | |
global $post; | |
$select_course_woocommerce_product = get_post_meta( $post->ID, '_course_woocommerce_product', true ); | |
echo '<input type="hidden" name="' . esc_attr( 'woo_course_noonce' ) . '" id="' . esc_attr( 'woo_course_noonce' ) . '" value="' . esc_attr( wp_create_nonce( plugin_basename( Sensei()->plugin_path ) ) ) . '" />'; | |
echo '<label for="wc-course-product-id">Product ID</label><br />'; |
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_filter( 'job_manager_job_submitted', function() { | |
if ( wp_redirect( job_manager_get_permalink( 'job_dashboard' ) ) ) { | |
exit; | |
} | |
}, 20 ); |
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 | |
/** | |
* Remove the preview step when submitting resumes. Code goes in theme functions.php or custom plugin. | |
* @param array $steps | |
* @return array | |
*/ | |
add_filter( 'submit_resume_steps', function( $steps ) { |
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 | |
add_action( 'wp_loaded', function() { | |
wp_deregister_style( 'jquery-ui' ); | |
$jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2'; | |
wp_register_style( 'jquery-ui', '//code.jquery.com/ui/' . $jquery_version . '/themes/black-tie/jquery-ui.css', array(), $jquery_version ); | |
}, 11 ); |
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 | |
// Paste the lines below in your functions.php or Code Snippets plugin. | |
// For the job dashboard page. | |
add_filter( 'job_manager_job_dashboard_login_url', 'job_manager_custom_sign_in_url' ); | |
// For the job form page. | |
add_filter( 'submit_job_form_login_url', 'job_manager_custom_sign_in_url' ); |
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 | |
add_action( 'user_register', function( $user_id ) { | |
if ( ! function_exists( 'wc_paid_listings_give_user_package' ) ) { | |
return; | |
} | |
$product_id = 0; // Update this to be the ID for the new product you've created (shown on the product listings page) | |
wc_paid_listings_give_user_package( $user_id, $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_filter( 'submit_job_steps', function( $steps ) { | |
$user = get_current_user_id(); | |
if ( ! $user || current_user_can( 'manage_options' ) ) { | |
return $steps; | |
} | |
$user_post_count = count( get_posts( [ | |
'author' => $user, | |
'post_type' => 'job_listing', | |
'post_status' => [ 'publish', 'pending' ] |
OlderNewer