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.9.7.1

apply_filters('action_scheduler_maximum_args_length') is found 1 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php line 1039
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    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
            )