artemsemkin

Rhye Services Widget: alter the post type

Feb 16th, 2021
714
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'arts/elementor/rhye_widget_services_slider/query_args', 'custom_rhye_widget_portfolio_fullscreen_slider_query_args' );
  2. function custom_rhye_widget_portfolio_fullscreen_slider_query_args( $args ) {
  3.   $args = array(
  4.     'post_type' => 'arts_portfolio_item', // page, post, arts_service, arts_portfolio_item, arts_album, etc...
  5.   );
  6.  
  7.   return $args;
  8. }
RAW Paste Data