I found the answer, and I put here for anyone who want to this:
For showing custom fields below codes should add to function payment_fields:
public function payment_fields(){
if ( $description = $this->get_description() ) {
echo wpautop( wptexturize( $description ) );
}
?>
<div id="custom_input">
<p class="form-row form-row-wide">
<label for="TedadGhest" class="">
<?php _e('number of installment', 'oti_iran_hekmat'); ?>
</label>
<select name="TedadGhest" id="TedadGhest">
<option value="6">6</option>
<option value="12">12</option>
<option value="18">18</option>
<option value="24">24</option>
</select>
</p>
</div>
<?php
}
Related Posts:
- Turn Off Auto Update for Single Plugin
- WooCommerce – How to Add a Custom Field to Cart Items and Cart Totals [closed]
- Is there a way to use latex \cite{reference} in wordpress?
- How to check plugin compatibility before upgrading WordPress
- How do I unlock a post programmatically?
- Force Plugin to English Translation
- How to parse nested shortcodes?
- Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
- Is it possible to have screenshots in any other section rather than the screenshots section?
- Removing user contact methods works from functions.php but not from a plugin
- How to extract images of post and pages excluding header and logo image in wordpress?
- Subscribe2 Configuration
- Dynamic HTML not displaying at respective place
- I need to Remove this line
- Should I global $wpdb outside of any of my plugin’s functions scope?
- Filter or action hook to insert content on admin pages before tag
- How do I change the default WordPress e-mail ID for sent e-mail?
- How to create a word press user with hashedpassword
- Display specific WooCommerce products to different types of users
- Is it possible to set up multistore in Woocommerce? [closed]
- Leveraging WordPress Comments on Custom Plugin Object page
- Woocommmerce show SKU in cart page
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Show HTML form before WordPress plugin deletion
- Redeclare theme’s function in a plugin
- Check if we’re viewing an event
- Show price with Geo IP location
- Menus, but not by theme location
- How to get 1 or 2 specific posts on top of my wordpress blog?
- Email Bounce Address
- Getting value from dymanic text variable into Contact Form 7
- Will Gutenberg Have a Negative Impact on Page Speed?
- How to export post 2 posts WordPress plugin data [closed]
- import posts with dutch/special letters
- Installing Jplayer in WordPress
- add_filter doesn’t work
- AJAX call – failling to call do_action
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Run function on plugin activation before plugin is loaded
- Register Script in Plugin Widget
- Updating options into the wp database performance
- Ajax save data to database on document ready, no data being saved
- Creating author Specific page URL
- I want to know about the plugins that help in while I write code on my Page? [closed]
- How to get specific string/value from an array? php [closed]
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- Woocomerce add info after order email prouct item
- WordPress super admin login issue. (Automatically logout)
- Plugins successfully uploaded via FTP but they are not on my site
- How to remove products-links after the product title using remove_action
- Why is it important to check for isset and is_array before checking in_array in this example?
- Bar graphs with dynamic data
- Plugins & backup not working correctly on new Digital Ocean server
- Why jquery option is not working when pass value using wp_localize_script?
- How do I add multiple buttons to Tiny MCE in a single plugin?
- Don’t load the theme for a page FROM a plugin EDITED
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- How to force load a page in plugin?
- How to add custom function to pluggable.php
- WooCommerce – new order email hook
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- Upload PlugIn Button is missing
- Remove Zero Money From Previews Order woocommerce
- WordPress Shortcodes – Return $Variable
- Woocommerce convert simple products to variations
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Disable Plugin or JS on Specific Admin URLs
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Bing/msn bots is heavily requesting random of my website
- How to bookmark pages that have dynamic URLs?
- Woocommerce budget search
- WordPress Thickbox Navigation Issue in Gallery
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Allow vendors on a WordPress site to pick from a gallery of pre-selected images when choosing product’s featured image
- Update and remove buttons are hidden in plugin’s page
- How to detect if i am on plugin’s settings page
- Overwrite user role
- Include plugin form in the home page
- Woocommerce: deleted single-product.php, everything still works. How is it possible?
- Plugins effecting layout & login
- How to delete only user meta value (not key) from usermeta table in wordpress?
- Is saving multiple options or saving multiple items in one option better?
- Style WordPress Custom Post Type Single Page
- How to set up year view for datepicker in The Events Calendar plugin?
- WordPress Custom post type won’t save properly
- Using Postmash plugin in WordPress 3.3.1
- Choose User to email when adding a new post?
- Element works, but not on wordpress site [duplicate]
- AdBlock blocks my non-advertising sidebar images [closed]
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- Can I install plugins manually on WP.com? [closed]
- A plugin doesn’t show up and refuse to be installed
- How can I output completely custom content with plugin while still having header, footer, sidebar etc [closed]
- Woo Commerce filter
- WordPress Customise
- Predefine Product Variations for specific custom product type [closed]
- Hook automatic_updates_complete to autoupdate plugin
- Create plugin with multiple blocks
- Console errors after WordPress Update 6.1
- View Version Details” on Plugin update shows “Plugin not found