Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function stavka_box_html () {
- global $post;
- wp_nonce_field( plugin_basename(__FILE__), 'myplugin_noncename' );
- ?>
- <input type="text" name="stavka_box_input" value="<?php echo (get_post_meta($post->ID,'stavka',true)); ?>">
- <?php
- }
- function formlink_box_html () {
- global $post;
- wp_nonce_field( plugin_basename(__FILE__), 'myplugin_noncename' );
- ?>
- <input type="text" name="formlink_box_input" value="<?php echo (get_post_meta($post->ID,'formlink',true)); ?>">
- <?php
- }
- function add_data_box () {
- add_meta_box('summ_boxid','Сумма:','summ_box_html','credits','side','high');
- add_meta_box('srok_boxid','Срок кредита:','srok_box_html','credits','side','high');
- add_meta_box('rassm_boxid','Срок рассмотрения:','rassm_box_html','credits','side','high');
- add_meta_box('stavka_boxid','Ставка:','stavka_box_html','credits','side','high');
- add_meta_box('formlink_boxid','Ссылка на форму заявки:','formlink_box_html','credits','side','high');
- }
- add_action('add_meta_boxes', 'add_data_box');
- add_action('save_post', 'add_data_box_save');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement