Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( ! function_exists( 'sweethome_custom_property_slider' ) ){
- function sweethome_custom_property_slider( $args ) {
- /**
- * Property IDs string, Separated by commas.
- * Example: $post__in = '3,6,8,9,20,100';
- */
- $post__in = '';
- if( !empty( $post__in ) ){
- $post__in = explode( "," , $post__in);
- if( !empty( $post__in ) && is_array( $post__in ) ){
- $args['post__in'] = $post__in;
- }
- }
- return $args;
- }
- add_filter( 'swh-propertslider-widget/args' , 'sweethome_custom_property_slider', 10, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement