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 | |
/** | |
* Check if current user already bookmarked $job | |
* | |
* @var $job Wpjb_Model_Job | |
* @return boolean True if current user already bookmarked $job | |
**/ | |
function my_wpjb_job_is_bookmarked(Wpjb_Model_Job $job) { | |
$id = get_current_user_id(); |
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 | |
/** | |
* Check if current user already applied to $job | |
* | |
* @var $job Wpjb_Model_Job | |
* @return boolean True if current user already applied to $job | |
**/ | |
function my_wpjb_job_already_applied_to(Wpjb_Model_Job $job) { | |
$id = get_current_user_id(); |
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 | |
// The code below you can paste in your theme functions.php or create | |
// new plugin and paste the code there. | |
add_filter("adverts_currency_list", "add_adverts_currency"); | |
/** | |
* Add new currency to the list | |
* |
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 | |
// You can place this code in your theme functions.php file | |
// or create new plugin and put the code there. | |
add_filter("wpjb_shortcode_login", "my_wpjb_shortcode_login"); | |
function my_wpjb_shortcode_login(Daq_View $view) { | |
// Text on login button | |
$view->submit = "Login Me!" ; |
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 | |
/** | |
* Example callback function for filling <select> fields | |
* | |
* @retuen array | |
**/ | |
function my_callback_function() { | |
return array( | |
array("key"=> "1", "value"=>"One", "description"=>"One"), | |
array("key"=> "2", "value"=>"Two", "description"=>"Two"), |
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 | |
/** | |
* Check if $job is bookmarked by currently logged in user | |
* | |
* @var $job Wpjb_Model_Job | |
* @return boolean True if job is bookmarked, false otherwise | |
**/ | |
function my_wpjb_job_is_bookmarked(Wpjb_Model_Job $job) { | |
$id = get_current_user_id(); |
NewerOlder