• – Create a lease payment link

      — Has to be generated with a booking attached

      — add a new booking

      Type

      — Short Term Rental
      — Attached to a Lease Template

      “`

      add_filter(
      ‘hivepress/v1/meta_boxes’,
      function( $meta_boxes ) {
      $meta_boxes[‘booking_settings’][‘fields’][‘leases’] = [
      ‘label’ => ‘Leases’,
      ‘type’ => ‘select’,
      ‘options’ => ‘posts’,
      ‘option_args’ => [ ‘post_type’ => ‘hp_listing’ ],
      ‘source’ => hivepress()->router->get_url( ‘listings_resource’ ),
      ‘required’ => true,
      ‘_alias’ => ‘post_parent’,
      ‘_order’ => 10,
      ];

      return $meta_boxes;
      }
      );
      “`

      Spencer and Philip
      0 Comments