Couldn’t make a snippet work
-
Hello,
I’m trying out some snippets from the documentation and although all the ones I’ve tried work for me, the ‘Snippet: Add Custom Listing Detail with Pre-defined Options’ didn’t work.
/** * Add custom listing detail with pre-defined options in WPCasa */ add_filter( 'wpsight_details', 'wpsight_details_condition' ); function wpsight_details_condition( $details ) { $details['details_9'] = array( 'id' => 'details_9', 'label' => __( 'Condition', 'wpcasa' ), 'unit' => '', 'data' => array( '' => __( 'n/d', 'wpcasa' ), 'occupiable' => __( 'occupiable now', 'wpcasa' ), 'renovation' => __( 'some renovation required', 'wpcasa' ) ), 'description' => '', 'query_var' => 'condition', 'data_compare' => '=', 'data_type' => '', 'dashboard' => false, 'position' => 90 ); return $details; }
https://docs.wpcasa.com/article/snippet-add-custom-listing-detail-with-pre-defined-options/
Can someone take a look at it?
Thank you very much.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Couldn’t make a snippet work’ is closed to new replies.