Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@purethemes
purethemes / functions.php
Created October 9, 2023 06:24
Change text Skills field in Submit Resume form in WP Job Manager Resume Manager to dropdown. Add this code to your functions.php
<?php
add_filter('submit_resume_form_fields', 'change_skills_submit_resume_field');
// // This is your function which takes the fields, modifies them, and returns them
function change_skills_submit_resume_field($fields)
{
// Here we target one of the resume fields (skill) and change it
$fields['resume_fields']['resume_skills']['type'] = "term-multiselect";
$fields['resume_fields']['resume_skills']['taxonomy'] = "resume_skill";
@purethemes
purethemes / functions.php
Last active October 9, 2023 06:25
Hide "apply for job" button for employers in WP Job Manager
<?php
add_filter('job_manager_candidates_can_apply','block_employer_applying');
function block_employer_applying($can_apply ){
$current_user = wp_get_current_user();
$user_id = get_current_user_id();
$roles = $current_user->roles;
$role = array_shift( $roles );
if($role == 'employer' ) {
$can_apply = false;
} else {
@purethemes
purethemes / line.php
Created January 3, 2020 12:18
Line Icons array
function lineicons_list() {
$icon = array("accessible-icon" => "Accessible Icon","american-sign-language-interpreting" => "American Sign Language Interpreting","assistive-listening-systems" => "Assistive Listening Systems","audio-description" => "Audio Description","blind" => "Blind","braille" => "Braille","closed-captioning" => "Closed Captioning","deaf" => "Deaf","low-vision" => "Low Vision","phone-volume" => "Phone Volume","question-circle" => "Question Circle","sign-language" => "Sign Language","tty" => "Tty","universal-access" => "Universal Access","wheelchair" => "Wheelchair","bell" => "Bell","bell-slash" => "Bell Slash","exclamation" => "Exclamation","exclamation-circle" => "Exclamation Circle","exclamation-triangle" => "Exclamation Triangle","radiation" => "Radiation","radiation-alt" => "Radiation Alt","skull-crossbones" => "Skull Crossbones","Animals" => "Animals","cat" => "Cat","crow" => "Crow","dog" => "Dog","dove" => "Dove","dragon" => "Dragon","feather" => "Feather","feather-alt" => "Feather
<fieldset>
<label for="full-name">Full name</label>
<div class="field required-field">[text* full-name]</div>
</fieldset>
<fieldset>
<label for="full-name">Email</label>
<div class="field required-field"> [email* your-email]</div>
</fieldset>
.woocommerce-store-notice, p.demo_store {
position: absolute;
top: 0;
left: 0;
right: 0;
margin: 0;
width: 100%;
font-size: 1em;
padding: 1em 0;
text-align: center;
<?php
/**
* The template for displaying all single jobs.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WorkScout
*/
get_header(); ?>
<h1><?php the_title(); ?>
<?php if ( get_option( 'job_manager_enable_types' ) ) {
$types = get_the_terms( $post->ID, 'job_listing_type' );
if ( $types && ! is_wp_error( $types ) ) :
foreach ( $types as $type ) { ?>
<span class="job-type <?php echo sanitize_title( $type->slug ); ?>"><?php echo $type->name; ?></span>
<?php }
endif;?>
<?php } ?>
<?php if(workscout_newly_posted()) { echo '<span class="new_job">'.esc_html__('NEW','workscout').'</span>'; } ?>
wp-content\themes\workscout\css\font-awesome.css:
771: .fa-money:before {
wp-content\themes\workscout\inc\shortcodes.php:
825: <i class="fa fa-money"></i> <?php echo get_workscout_currency_symbol(); echo esc_html( $rate_min ); if(!empty($rate_max)) { echo '- '.get_workscout_currency_symbol().$rate_max; } ?> <?php _e('/ hour','workscout'); ?>
834: <i class="fa fa-money"></i>
978: <i class="fa fa-money"></i> <?php echo get_workscout_currency_symbol(); echo esc_html( $rate_min ); if(!empty($rate_max)) { echo '- '.get_workscout_currency_symbol().$rate_max; } ?> <?php _e('/ hour','workscout'); ?>
987: <i class="fa fa-money"></i>
wp-content\themes\workscout\job_manager\content-job_listing.php:
<?php
$layout = get_option( 'pp_blog_layout', 'right-sidebar' );
$class = ($layout=='full-width') ? 'eight' : 'half-eleven' ;
$container_class = ($layout=='full-width') ? 'sixteen' : 'eleven' ;
$magazine_content = get_option('pp_magazine_categories');
foreach ($magazine_content as $content) { ?>
<div class="<?php echo esc_attr($container_class ); ?> columns alpha omega">