PluginProbe
Chartify – WordPress Chart Plugin / 1.0.0
Chartify – WordPress Chart Plugin v1.0.0
3.8.0 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 trunk 1.0.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 All 83 releases
chart-builder / includes / charts-save.php

charts-save.php in Chartify – WordPress Chart Plugin 1.0.0, at includes/charts-save.php

22 lines 636 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $ays_chart_db_actions;
3
4 $id = (isset($_GET['id'])) ? absint( sanitize_text_field($_GET['id']) ) : 0;
5
6 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
7 $ays_chart_db_actions->add_or_edit_item( $id );
8 }
9
10
11 if(isset($_POST['ays_apply']) || isset($_POST['ays_apply_top'])){
12 $_POST['save_type'] = 'apply';
13 $ays_chart_db_actions->add_or_edit_item( $id );
14 }
15
16
17 if(isset($_POST['ays_save_new']) || isset($_POST['ays_save_new_top'])){
18 $_POST['save_type'] = 'save_new';
19 $ays_chart_db_actions->add_or_edit_item( $id );
20 }
21
22