开发者 | wpwham |
---|---|
更新时间 | 2025年3月7日 17:14 |
PHP版本: | 4.4 及以上 |
WordPress版本: | 6.7 |
版权: | GNU General Public License v3.0 |
版权网址: | 版权信息 |
[product_crowdfunding_total_sum]
- total sum (i.e. funded to date) for current product (formatted as price).[product_crowdfunding_total_backers]
- total number of orders (i.e. backers) for current product.[product_crowdfunding_total_items]
- total number of ordered items for current product.[product_crowdfunding_list_backers]
- list of backers for current product.[product_crowdfunding_goal]
- end goal for current product (formatted as price).[product_crowdfunding_goal_remaining]
- sum remaining to reach the end goal for current product (formatted as price).[product_crowdfunding_goal_remaining_progress_bar]
- goal remaining as graphical progress bar.[product_crowdfunding_goal_backers]
- end goal (backers) for current product.[product_crowdfunding_goal_backers_remaining]
- backers remaining to reach the end goal for current product.[product_crowdfunding_goal_backers_remaining_progress_bar]
- goal (backers) remaining as graphical progress bar.[product_crowdfunding_goal_items]
- end goal (items) for current product.[product_crowdfunding_goal_items_remaining]
- items remaining to reach the end goal for current product.[product_crowdfunding_goal_items_remaining_progress_bar]
- goal (items) remaining as graphical progress bar.[product_crowdfunding_startdate]
- starting date for current product.[product_crowdfunding_starttime]
- starting time for current product.[product_crowdfunding_startdatetime]
- starting date and time for current product.[product_crowdfunding_deadline]
- ending date for current product.[product_crowdfunding_deadline_time]
- ending time for current product.[product_crowdfunding_deadline_datetime]
- ending date and time for current product.[product_crowdfunding_time_remaining]
- time remaining till deadline.[product_crowdfunding_time_remaining_progress_bar]
- time remaining as graphical progress bar.[product_crowdfunding_add_new_campaign]
- campaigns by users.[crowdfunding_totals]
- all crowdfunding campaigns (i.e. products) totals.[product_crowdfunding_add_to_cart_form]
- backers (add to cart) HTML form./wp-content/plugins/
directory.[product_crowdfunding_time_to_start]
- "Illegal string offset..." notice fixed.[product_crowdfunding_startdatetime]
and [product_crowdfunding_deadline_datetime]
- date_format
and time_format
attributes added.[product_crowdfunding_startdate]
and [product_crowdfunding_deadline]
- date_format
attribute added.[crowdfunding_translate]
shortcode added (for WPML/Polylang).[crowdfunding_totals]
- return_value
- total_campaigns
option added.[crowdfunding_totals]
- product_ids
attribute added.[crowdfunding_totals]
shortcode added.alg_wc_crowdfunding_campaign_orders_data_calculated
, alg_wc_crowdfunding_campaign_not_active
and alg_wc_crowdfunding_campaign_ended
actions added.[product_crowdfunding_list_backers]
shortcode added.alg_wc_crdfnd_calculate_product_orders_data()
- Code refactoring.select
type display fixed.alg_wc_crdfnd_get_product_id_or_variation_parent_id()
and alg_wc_crdfnd_get_product_post_status()
- Checking for valid $_product
.get_progress_bar()
- text_position
, text_position_variable_max_left
, text_top
attributes added. Code refactoring.woocommerce_get_price
and woocommerce_product_get_price
).alg_wc_crdfnd_calculate_product_orders_data()
- Additional check for product added.http://coder.fm
to https://wpcodefactory.com
.percent
value for type
attribute (and round_precision
attribute) added to [product_crowdfunding_total_sum]
, [product_crowdfunding_total_backers]
, [product_crowdfunding_total_items]
, [product_crowdfunding_goal_remaining]
, [product_crowdfunding_goal_backers_remaining]
, [product_crowdfunding_goal_items_remaining]
shortcodes.alg_crowdfunding_output_shortcode_price
filter added.load_plugin_textdomain
moved from init
hook to constructor.load_plugin_textdomain
moved from init
hook to constructor.wp_enqueue_script( 'alg-datepicker' )
.select
type added to user campaign and admin fields. Can be used in alg_crowdfunding_admin_fields
, alg_crowdfunding_user_campaign_fields
, alg_crowdfunding_user_campaign_save_fields
hooks.pt_BR
) translation updated.current_time
result converted to int
.required
option added.alg_crowdfunding_admin_fields
and alg_crowdfunding_user_campaign_fields
filters added. alg_crowdfunding_user_campaign_save_fields
action added.wp_enqueue_style
, wp_enqueue_script
, wp_register_script
.display="date"
changed to display="alg_crowdfunding_date"
; display="time"
changed to display="alg_crowdfunding_time"
.do_shortcode()
added to is_purchasable_html()
.[product_crowdfunding_time_to_start]
shortcode added (with campaign_will_start
, campaign_started
and precision
attributes).[product_crowdfunding_time_remaining]
- Full "time left" returned. campaign_will_end
, campaign_ended
and precision
attributes added.pt_BR
) translation files added.WP_Query
optimized in alg_wc_crdfnd_calculate_product_orders_data()
to loop in blocks.WP_Query
optimized in alg_wc_crdfnd_calculate_product_orders_data()
, alg_wc_crdfnd_count_crowdfunding_products()
, add_my_products_content_my_account_page()
, add_my_products_tab_my_account_page()
and update_products_data()
to return ids
only.order_status
shortcode attribute removed).get_product_orders_data()
global post fix.is_super_admin
call replaced.lt_LT
translation added.[product_crowdfunding_time_progress_bar]
renamed to [product_crowdfunding_time_remaining_progress_bar]
.total_orders
in get_product_orders_data
.starting_offset
shortcodes attribute added to get_product_orders_data
.show_if_zero
attribute added to output_shortcode
function.[product_crowdfunding_goal_backers]
shortcode added.[product_crowdfunding_goal_items]
shortcode added.[product_crowdfunding_goal_backers_remaining]
shortcode added.[product_crowdfunding_goal_items_remaining]
shortcode added.[product_crowdfunding_goal_backers_remaining_progress_bar]
shortcode added.[product_crowdfunding_goal_items_remaining_progress_bar]
shortcode added.[product_crowdfunding_goal_progress_bar]
renamed to [product_crowdfunding_goal_remaining_progress_bar]
.[product_total_orders_sum]
renamed to [product_crowdfunding_total_sum]
.[product_total_orders]
renamed to [product_crowdfunding_total_backers]
.[product_crowdfunding_total_items]
shortcode added.post__not_in
added to save_meta_box
.product_id
attribute added in shortcodes.order_status
attribute added in orders shortcodes: product_crowdfunding_goal_progress_bar
, product_crowdfunding_goal_remaining
, product_total_orders
, product_total_orders_sum
.is_crowdfunding_product()
. Caused PHP notice.product
reset in get_product_orders_data()
added.[product_crowdfunding_time_remaining]
singular form bug fixed.[product_crowdfunding_time_progress_bar]
shortcode added.[product_crowdfunding_goal_progress_bar]
shortcode added.[product_crowdfunding_add_to_cart_form]
shortcode added.[product_crowdfunding_starttime]
, [product_crowdfunding_startdatetime]
, [product_crowdfunding_deadline_time]
, [product_crowdfunding_deadline_datetime]
shortcodes added.crowdfunding
type products now.