get_post_statuses(); $post_count = wp_count_posts( $post_type ); foreach ( $post_statuses as $post_status ) : ?> get_post_types(); ?> get_post_types_by_status(); $name = 'smbd_' . $this->field_slug; if ( $multiple_select ) { $name .= '[]'; } ?> 1 ) { $type_status['status'] = end( $str_arr ); $type_status['type'] = implode( '-', array_slice( $str_arr, 0, - 1 ) ); } else { $type_status['status'] = 'publish'; $type_status['type'] = $str; } return $type_status; } /** * Render post reassign settings. */ protected function render_post_reassign_settings() { ?> 'smbd_' . esc_attr( $this->field_slug ) . '_reassign_user_id', 'class' => 'reassign-user', 'show_option_none' => __( 'Select User', 'bulk-delete' ), ) ); ?> field_slug ); } /** * Render Taxonomy dropdown. */ protected function render_taxonomy_dropdown() { $builtin_taxonomies = get_taxonomies( array( '_builtin' => true ), 'objects' ); $custom_taxonomies = get_taxonomies( array( '_builtin' => false ), 'objects' ); ?> get_categories(); ?> 'equal to', '!=' => 'not equal to', '<' => 'less than', '<=' => 'less than or equal to', '>' => 'greater than', '>=' => 'greater than or equal to', 'IN' => 'in', 'NOT IN' => 'not in', 'BETWEEN' => 'between', 'NOT BETWEEN' => 'not between', 'EXISTS' => 'exists', 'NOT EXISTS' => 'not exists', ); if ( in_array( 'all', $operators, true ) ) { $operators = array_keys( $all_numeric_operators ); } ?> 'equal to', '!=' => 'not equal to', 'IN' => 'in', 'NOT IN' => 'not in', 'LIKE' => 'contains', 'NOT LIKE' => 'not contains', 'EXISTS' => 'exists', 'NOT EXISTS' => 'not exists', 'STARTS_WITH' => 'starts with', 'ENDS_WITH' => 'ends with', ); if ( in_array( 'all', $operators, true ) ) { $operators = array_keys( $all_string_operators ); } ?> get_tags(); ?> = $this->get_enhanced_select_threshold() ) { $class_name .= '-ajax'; } return $class_name; } /** * Render Sticky Posts dropdown. */ protected function render_sticky_posts_dropdown() { $sticky_posts = $this->get_sticky_posts(); ?> 1 ) : ?> post_author ); ?>
are_sticky_posts_present() ) : // phpcs:ignore?> field_slug ); } /** * Render sticky settings. */ protected function render_sticky_action_settings() { ?> field_slug, $this->item_type ); } /** * Render delete settings. */ protected function render_delete_settings() { bd_render_delete_settings( $this->field_slug ); /** * This action is primarily for adding delete attachment settings. * * @since 6.0.0 * * @param \BulkWP\BulkDelete\Core\Base\BaseModule The delete module. */ do_action( 'bd_render_attachment_settings', $this ); } /** * Render limit settings. * * @param string $item_type Item Type to be displayed in label. */ protected function render_limit_settings( $item_type = '' ) { if ( empty( $item_type ) ) { $item_type = $this->item_type; } bd_render_limit_settings( $this->field_slug, $item_type ); } /** * Render cron settings based on whether scheduler is present or not. */ protected function render_cron_settings() { $pro_class = ''; $disabled_attr = 'disabled'; if ( empty( $this->scheduler_url ) ) { $disabled_attr = ''; } ?> autocomplete="off"> scheduler_url ) ) : ?> field_slug ) . '-pro'; /** * HTML class of the span that displays the 'Pro only feature' message. * * @since 6.0.0 * * @param string $pro_class HTML class. * @param string $field_slug Field Slug of module. * @param \BulkWP\BulkDelete\Core\Base\BaseModule $module Module. */ $pro_class = apply_filters( 'bd_pro_only_feature_class', $pro_class, $this->field_slug, $this ) ?> Buy now class="" style="display: none;" > Y-m-d H:i:s format or enter now to use current time.', 'bulk-delete' ); $markup = __( 'Want to add new a Cron schedule?', 'bulk-delete' ) . ' ' . '' . __( 'Find out how', 'bulk-delete' ) . ''; $content = __( 'Learn how to add your desired Cron schedule.', 'bulk-delete' ); echo ' ', bd_generate_help_tooltip( $markup, $content ); ?> action ); } }