跳转到主要内容

0281-filters-wp-graphql-experiment-enabled


title: wp_graphql_experiment_enabled hookType: filter hookGroup: settings plugin: wp-graphql

wp_graphql_experiment_enabled

apply_filters( 'wp_graphql_experiment_enabled', $is_active, $slug );

Filters whether the experiment is active.

  • Type: filter
  • Group: Settings and Admin
  • Since: 2.3.8
  • Source File: plugins/wp-graphql/src/Experimental/Experiment/AbstractExperiment.php

Parameters

  • $is_active (bool): Whether the experiment is active.
  • $slug (string): The experiment's slug.

Source

apply_filters( 'wp_graphql_experiment_enabled', $is_active, $slug );