Hello,
Add following code snippet in your child theme functions.php file or via any snippet plugin. This will add new custom option at GeoDirectory > Prices & Payments > General > “Enable expiry process?” > “Select the listing status after the place listing expires.”. Choose custom status from here to assigned it to expired listing.
/*
* Add custom expire status
*/
function _gd_snippet_custom_expire_status( $settings ) {
$custom_status_id = 'custom_status'; // Change custom status id of your registered custom status
$custom_status_name = __( 'Custom Status' ); // Change custom status name of your registered custom status
foreach ( $settings as $key => $setting ) {
if ( ! empty( $setting['id'] ) && $setting['id'] == 'geodir_listing_ex_status' && ! empty( $setting['options'] ) ) {
$settings[ $key ]['options'][ $custom_status_id ] = $custom_status_name;
}
}
return $settings;
}
add_filter( 'payment_invoice_options', '_gd_snippet_custom_expire_status', 20, 1 );
Kiran