I have a big multidimensional array being sent as ajax post. But in some servers, it does not send the data completely a portion at the end of the array is being cut out.
Is there any limitations?
add_action( 'wp_ajax_pgggo_ajax_sorting_loader', array($this, 'pgggo_ajax_loader_sorting_callback'));
add_action( 'wp_ajax_nopriv_pgggo_ajax_sorting_loader', array($this, 'pgggo_ajax_loader_sorting_callback') );
$.ajax({
url: pgggoAjax.ajax_url,
type: 'POST',
context: this,
data: {
action: 'pgggo_ajax_pagination_loader',
nonce: pgggoAjax.nonce,
pgggosettings: pgggoAjax.pgggosettings,
pgggopage: parseInt($(this).text()),
pagesortorderaccent: '',
pagesortorderdecnet: '',
},
success: function(response) {
},
});
});
then in the call back I am using
check_ajax_referer( 'pgggo_ajax_loader_nonce', 'nonce' );
if (isset($_POST['pgggosettings'])) {
$data_settings = $_POST['pgggosettings'];
}else{
$data_settings = "";
}
the array output is bigone..it exceeds the max limit here. Actually its the elementor widget setting that I am passing
$settings = $this->get_settings_for_display();
wp_enqueue_script('pgggo-ajax-jquery');
wp_localize_script( 'pgggo-ajax-jquery', 'pgggoAjax', array(
'ajax_url' => admin_url( 'admin-ajax.php' ),
'nonce' => wp_create_nonce( "pgggo_ajax_loader_nonce" ),
'pgggosettings' => $settings,
) );
register_endpoint
to create your new REST endpoint/URL to make connections topgggo
but never found what the accronym stands for or where the action comes from, can you help identify?