| @@ -85,9 +85,13 @@ | ||
| 85 | 85 | |
| 86 | 86 | add_action( 'wp_scheduled_delete', 'FrmForm::scheduled_delete' ); |
| 87 | 87 | |
| 88 | 88 | // Clear embed posts transient when posts are updated. |
| 89 | - add_action( 'wp_insert_post', 'FrmFormsListHelper::maybe_clear_embed_posts_transient', 10, 2 ); | |
| 89 | + add_action( 'wp_insert_post', 'FrmFormsListHelper::maybe_clear_embed_posts_transient', 10, 3 ); | |
| 90 | + add_action( 'post_updated', 'FrmFormsListHelper::maybe_clear_embed_posts_transient_on_update', 10, 3 ); | |
| 91 | + add_action( 'trashed_post', 'FrmFormsListHelper::clear_embed_posts_transient_for_post' ); | |
| 92 | + add_action( 'untrashed_post', 'FrmFormsListHelper::clear_embed_posts_transient_for_post' ); | |
| 93 | + add_action( 'deleted_post', 'FrmFormsListHelper::clear_embed_posts_transient_for_post', 10, 2 ); | |
| 90 | 94 | |
| 91 | 95 | // Form Shortcodes. |
| 92 | 96 | add_shortcode( 'formidable', 'FrmFormsController::get_form_shortcode' ); |
| 93 | 97 | |
| @@ -99,9 +103,8 @@ | ||
| 99 | 103 | |
| 100 | 104 | // Simple Blocks Controller. |
| 101 | 105 | add_action( 'init', 'FrmSimpleBlocksController::register_simple_form_block' ); |
| 102 | 106 | |
| 103 | - add_filter( 'cron_schedules', 'FrmUsageController::add_schedules' ); | |
| 104 | 107 | add_action( 'formidable_send_usage', 'FrmUsageController::send_snapshot' ); |
| 105 | 108 | |
| 106 | 109 | /** |
| 107 | 110 | * Make name field work with View. |
| @@ -171,8 +174,9 @@ | ||
| 171 | 174 | // Forms Controller. |
| 172 | 175 | add_action( 'admin_menu', 'FrmFormsController::menu', 10 ); |
| 173 | 176 | add_action( 'admin_head-toplevel_page_formidable', 'FrmFormsController::head' ); |
| 174 | 177 | add_action( 'frm_after_field_options', 'FrmFormsController::logic_tip' ); |
| 178 | + add_action( 'frm_field_code_tab', 'FrmFormsController::field_part_shortcodes' ); | |
| 175 | 179 | add_filter( 'frm_fields_in_form_builder', 'FrmFormsController::update_form_builder_fields' ); |
| 176 | 180 | |
| 177 | 181 | add_filter( 'set-screen-option', 'FrmFormsController::save_per_page', 10, 3 ); |
| 178 | 182 | add_action( 'admin_footer', 'FrmFormsController::insert_form_popup' ); |