action_scheduler_maximum_args_length

action_scheduler_maximum_args_length

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('action_scheduler_maximum_args_length') is found 1 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php line 1039
    		global $wpdb;
    
    		$dependencies_met = get_transient( self::DEPENDENCIES_MET );
    		if ( empty( $dependencies_met ) ) {
    			$maximum_args_length = apply_filters( 'action_scheduler_maximum_args_length', 191 );
    			$found_action        = $wpdb->get_var( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
    				$wpdb->prepare(
    					"SELECT ID FROM {$wpdb->posts} WHERE post_type = %s AND CHAR_LENGTH(post_content) > %d LIMIT 1",
    					$maximum_args_length,
    					self::POST_TYPE
    				)