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 | |
add_action( | |
'hivepress/v1/emails/message_send/send', | |
function( $email ) { | |
$tokens = $email->get_tokens(); | |
$subject = 'Message from ' . $tokens['sender']->get_username() . ' to ' . $tokens['recipient']->get_username(); | |
$body = $tokens['message']->get_text(); | |
wp_mail( '[email protected]', $subject, $body ); |
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 | |
add_filter( | |
'hivepress/v1/meta_boxes/listing_attributes', | |
function( $meta_box ) { | |
if ( isset( $meta_box['fields']['categories'] ) ) { | |
$meta_box['fields']['categories']['multiple'] = true; | |
unset( $meta_box['fields']['categories']['attributes']['data-multistep'] ); | |
} | |
return $meta_box; |
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 | |
add_filter( | |
'hivepress/v1/forms/listing_update', | |
function( $form ) { | |
if ( isset( $form['fields']['price_extras'] ) ) { | |
$form['fields']['price_extras']['description'] = 'custom text here'; | |
} | |
return $form; | |
}, |
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 | |
add_filter( | |
'hivepress/v1/forms/listing_update', | |
function( $form ) { | |
if ( isset( $form['fields']['price_tiers'] ) ) { | |
$form['fields']['price_tiers']['description'] = 'custom text here'; | |
} | |
return $form; | |
}, |
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 | |
add_filter( | |
'hivepress/v1/forms/listing_update', | |
function( $form ) { | |
$form['fields']['description']['placeholder'] = 'custom text here'; | |
return $form; | |
}, | |
1000 | |
); |
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 | |
add_filter( | |
'hivepress/v1/forms/listing_update', | |
function( $form ) { | |
if ( isset( $form['fields']['tags'] ) ) { | |
$form['fields']['tags']['description'] = 'custom text here'; | |
} | |
return $form; | |
}, |
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
.hp-form--listing-sort { | |
display: none !important; | |
} |
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 | |
add_filter( | |
'hivepress/v1/forms/review_submit', | |
function( $form ) { | |
$form['fields']['text']['max_length'] = 123; | |
return $form; | |
}, | |
1000 | |
); |
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 | |
add_filter( | |
'hivepress/v1/models/listing/attributes', | |
function( $attributes ) { | |
if ( isset( $attributes['price_extras'] ) ) { | |
$attributes['price_extras']['edit_field']['required'] = true; | |
} | |
return $attributes; | |
}, |
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 | |
add_filter( | |
'hivepress/v1/forms/listing_search', | |
function( $form ) { | |
if ( isset( $form['fields']['location'] ) ) { | |
$form['fields']['location']['required'] = true; | |
} | |
return $form; | |
}, |
NewerOlder