php 在列表价格元数据框中将特定要约设置为默认值

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 在列表价格元数据框中将特定要约设置为默认值相关的知识,希望对你有一定的参考价值。

<?php

/**
 * Set specific offer as default in listing price metabox
 */
add_filter( 'wpsight_meta_box_listing_price_fields', 'custom_wpsight_meta_box_listing_price_fields', 10 );

function custom_wpsight_meta_box_listing_price_fields( $fields ) {
  $fields['offer']['default'] = 'rent';
  return $fields;
}

以上是关于php 在列表价格元数据框中将特定要约设置为默认值的主要内容,如果未能解决你的问题,请参考以下文章