PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.6.3
Kubio AI Page Builder v2.6.3
2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / lib / AI / index.php
kubio / lib / AI Last commit date
Blog 1 year ago SDApi 1 year ago Shop 1 year ago admin-tab 1 year ago filters 1 year ago PostImage.php 1 year ago api.php 1 year ago index.php 1 year ago utils.php 1 year ago
index.php
45 lines
1 <?php
2
3 // if enableAICapabilities is not set, set it to true if the user is pro, get a filtered default value
4 add_filter(
5 'kubio/flags/settings',
6 function ( $settings ) {
7 if ( ! isset( $settings['enableAICapabilities'] ) ) {
8 $settings['enableAICapabilities'] = apply_filters( 'kubio/ai/default-enabled', true );
9 }
10 return $settings;
11 }
12 );
13
14
15
16
17 function kubio_ai_get_key() {
18
19 if ( defined( 'KUBIO_AI_KEY' ) ) {
20 return KUBIO_AI_KEY;
21 }
22
23 return get_option( 'kubio_ai_key', false );
24 }
25
26 function kubio_ai_set_key( $key ) {
27 update_option( 'kubio_ai_key', sanitize_text_field( $key ) );
28 }
29
30 require_once __DIR__ . '/utils.php';
31 require_once __DIR__ . '/Blog/index.php';
32 require_once __DIR__ . '/PostImage.php';
33 require_once __DIR__ . '/Shop/ShopContent.php';
34 require_once __DIR__ . '/SDApi/KubioImageManager.php';
35 require_once __DIR__ . '/SDApi/KubioCloudSDApi.php';
36 require_once __DIR__ . '/SDApi/KubioImageGenerate.php';
37 require_once __DIR__ . '/SDApi/KubioImageSearch.php';
38 require_once __DIR__ . '/SDApi/KubioImagePrompts.php';
39
40 require_once __DIR__ . '/api.php';
41 require_once __DIR__ . '/SDApi/sd-endpoints.php';
42
43 require_once __DIR__ . '/filters/index.php';
44 require_once __DIR__ . '/admin-tab/tab.php';
45