View hd-user-categories.php
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
<?php | |
/* | |
Plugin Name: User Categories | |
Plugin URI: https://highrise.digital/ | |
Description: Adds categories to users. It allows you to assign categories to users which you could then use elsewhere in your site. | |
Version: 1.0 | |
License: GPL-2.0+ | |
Author: Highrise Digital Ltd | |
Author URI: https://highrise.digital/ | |
Text domain: hd-user-categories |
View highrise-auto-updater.php
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
<?php | |
/* | |
Plugin Name: Highrise Digital Auto Updater | |
Plugin URI: https://highrise.digital/ | |
Description: A plugin to set WordPress to auto update everything. | |
Version: 1.0 | |
License: GPL-2.0+ | |
Author: Highrise Digital | |
Author URI: https://highrise.digital/ | |
Text domain: highrise-auto-updater |
View wp-dev-env-body-class.php
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
<?php | |
/** | |
* Adds a body class for the environment. | |
* | |
* @param array $classes The current array of body classes. | |
* @return array The new array of body classes. | |
*/ | |
function hd_env_body_class( $classes ) { | |
// if WP environment function exists. |
View extensible-changes.php
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
<?php | |
/** | |
* Edit the social profiles available. | |
* | |
* @param array $profiles The current array of registered social profiles. | |
* @return array The modified array of registered social profiles. | |
*/ | |
function hd_test_edit_social_profile( $profiles ) { | |
// if we have a linkedin profile. |
View readme.txt
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
This function will change the behaviour of the salary field in the WP Broadbean Search form. By default the salary search only searches for values greater than whatever the user enters. | |
The code above changes the behaviour of this to return jobs that have salary values greater than AND equal to the value entered. | |
Place this code either in your themes functions.php file, your own plugin, or a file in the mu-plugins folder inside the wp-content folder. |
View wpbb-salary-field-edit.php
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
<?php | |
/** | |
* Edits the salary currency field in WP Broadbean by first removing it and | |
* then re-adding it back in with an additional currency for USD in the select. | |
* | |
* @param arrray $fields The current array of fields. | |
* @return array The modified array if fields. | |
*/ | |
function wpmark_edit_salary_currency_field( $fields ) { |
View ffpw-markup-overide.php
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
<?php | |
/** | |
* function wpmark_remove_ffpw_output_action() | |
* | |
* removes the flexibile featured post widgets output | |
*/ | |
function wpmark_remove_ffpw_output_action() { | |
remove_action( 'ffpw_featured_post_output', 'ffpw_featured_post_output', 10, 3 ); | |
} | |
add_action( 'init', 'wpmark_remove_ffpw_output_action' ); |
View wp-in-own-dir.php
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
<?php | |
/** | |
* Bootstrap WordPress | |
*/ | |
if ( !defined( 'ABSPATH' ) ) | |
define( 'ABSPATH', dirname( __FILE__ ) . '/cms/' ); | |
?> |
View wp-custom-content-folder.php
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
<?php | |
* Custom Content Directory | |
*/ | |
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/content' ); | |
define( 'WP_CONTENT_URL', 'http://' . $_SERVER[ 'HTTP_HOST' ] . '/content' ); | |
?> |
View wp-query-orderby-muliple-meta-keys.php
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
<?php | |
/* build a new wp_query */ | |
$classes = new WP_Query( | |
array( | |
'post_type' => 'wpmark_class_time', // post type to query | |
'posts_per_page' => -1, // get all the posts not limited | |
'meta_query' => array( | |
'relation' => 'AND', | |
'day' => array( // give the first meta key array an array key | |
'key' => '_wpmark_day', |