Skip to content

Instantly share code, notes, and snippets.

@kaskad88
Last active September 28, 2020 15:00
Show Gist options
  • Save kaskad88/eae2edbe37cb36e151b0d7a5a28c6aa9 to your computer and use it in GitHub Desktop.
Save kaskad88/eae2edbe37cb36e151b0d7a5a28c6aa9 to your computer and use it in GitHub Desktop.
Update elementor control
add_action( 'elementor/element/jet-engine-maps-listing/section_general/before_section_end', '__your_prefix_update_posts_num_control', 10, 2 );
function __your_prefix_update_posts_num_control( $widget = null, $args = array() ) {
$widget->update_control(
'posts_num',
array(
'max' => 1000,
)
);
}
add_action( 'elementor/element/jet-listing-grid/section_general/before_section_end', '__your_prefix_update_posts_num_control', 10, 2 );
function __your_prefix_update_posts_num_control( $widget = null, $args = array() ) {
$widget->update_control(
'posts_num',
array(
'max' => 1000,
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment