PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / trunk
Pods – Custom Content Types and Fields vtrunk
trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / ui / admin / setup-edit.php
pods / ui / admin Last commit date
callouts 4 months ago upgrade 4 months ago widgets 4 months ago components-admin.php 1 month ago help-addons-row.php 4 months ago help-addons.php 4 months ago help.php 4 months ago postbox-header.php 4 months ago settings-reset.php 4 months ago settings-settings.php 4 months ago settings-tools.php 4 months ago settings.php 4 months ago setup-add.php 4 months ago setup-edit.php 4 months ago shortcode.php 4 months ago view.php 4 months ago
setup-edit.php
40 lines
1 <?php
2
3 // Don't load directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 die( '-1' );
6 }
7
8 // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
9
10 // Prevent non-admins.
11 if ( ! pods_is_admin( 'pods' ) ) {
12 die( '-1' );
13 }
14
15 wp_enqueue_media();
16 wp_enqueue_editor();
17
18 if (
19 (
20 function_exists( 'did_filter' )
21 && ! did_filter( 'tiny_mce_before_init' )
22 )
23 || ! did_action( 'enqueue_block_editor_assets' )
24 ) {
25 wp_tinymce_inline_scripts();
26 }
27
28 wp_enqueue_style( 'wp-edit-post' );
29
30 // Formatted data
31 $data = [
32 'fieldType' => 'edit-pod',
33 'fieldEmbed' => false,
34 ];
35 ?>
36 <div class="wrap pods-admin">
37 <div id="icon-pods" class="icon32"><br /></div>
38 <script type="application/json" class="pods-dfv-field-data"><?php echo wp_json_encode( $data, JSON_HEX_TAG ); ?></script>
39 </div>
40