Submit
Path:
~
/
home
/
getwphos
/
public_html
/
brueggemann
/
wp-content
/
plugins
/
insert-headers-and-footers
/
includes
/
File Content:
capabilities.php
<?php /** * Map capabilites with backwards compatibility. * * @package WPCode */ // Prevent direct access. if ( ! defined( 'ABSPATH' ) ) { exit; } add_filter( 'map_meta_cap', 'wpcode_map_meta_cap', 10, 4 ); /** * Map capabilites with backwards compatibility. * * @param string[] $caps Primitive capabilities required of the user. * @param string $cap Capability being checked. * @param int $user_id The user ID. * @param array $args Adds context to the capability check, typically * starting with an object ID. * * @return array */ function wpcode_map_meta_cap( $caps, $cap, $user_id, $args ) { $custom_capabilities = array( 'wpcode_edit_php_snippets', 'wpcode_edit_html_snippets', 'wpcode_manage_conversion_pixels', 'wpcode_file_editor', 'wpcode_manage_settings', ); if ( in_array( $cap, $custom_capabilities, true ) ) { return array( 'wpcode_edit_snippets' ); } return $caps; } /** * Get an array of the custom capabilities that WPCode uses. * * @return array[] */ function wpcode_custom_capabilities() { return array( 'wpcode_edit_text_snippets' => array( 'label' => __( 'Edit Text/Blocks Snippets', 'insert-headers-and-footers' ), 'description' => __( 'This enables users to edit just text & blocks snippets, no HTML code is allowed.', 'insert-headers-and-footers' ), ), 'wpcode_edit_html_snippets' => array( 'label' => __( 'Edit HTML, JavaScript & CSS Snippets', 'insert-headers-and-footers' ), 'description' => __( 'This enables users to add and manage HTML, JavaScript & CSS snippets but also Text & Blocks snippets.', 'insert-headers-and-footers' ), ), 'wpcode_edit_php_snippets' => array( 'label' => __( 'Edit PHP Snippets', 'insert-headers-and-footers' ), 'description' => __( 'This enables users to add and manage PHP snippets and all the other types of snippets.', 'insert-headers-and-footers' ), ), 'wpcode_manage_conversion_pixels' => array( 'label' => __( 'Manage Conversion Pixels Settings', 'insert-headers-and-footers' ), 'description' => __( 'This enables users to manage the conversion pixels settings.', 'insert-headers-and-footers' ), ), 'wpcode_file_editor' => array( 'label' => __( 'Use the File Editor', 'insert-headers-and-footers' ), 'description' => __( 'This enables users to use the file editor.', 'insert-headers-and-footers' ), ), ); } /** * Return just the keys to avoid a gettext call that causes an endless loop with TranslatePress. * * @return string[] */ function wpcode_custom_capabilities_keys() { return array( 'wpcode_edit_text_snippets', 'wpcode_edit_html_snippets', 'wpcode_edit_php_snippets', 'wpcode_manage_conversion_pixels', 'wpcode_file_editor', ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
admin
---
0755
auto-insert
---
0755
conditional-logic
---
0755
execute
---
0755
generator
---
0755
lite
---
0755
capabilities.php
2809 bytes
0644
class-wpcode-abilities-api.php
16146 bytes
0644
class-wpcode-admin-bar-info.php
13947 bytes
0644
class-wpcode-auto-insert.php
3779 bytes
0644
class-wpcode-capabilities.php
1135 bytes
0644
class-wpcode-conditional-logic.php
5407 bytes
0644
class-wpcode-error.php
7730 bytes
0644
class-wpcode-file-cache.php
6536 bytes
0644
class-wpcode-file-logger.php
8743 bytes
0644
class-wpcode-generator.php
6805 bytes
0644
class-wpcode-install.php
8171 bytes
0644
class-wpcode-library-auth.php
7086 bytes
0644
class-wpcode-library.php
23467 bytes
0644
class-wpcode-settings.php
3501 bytes
0644
class-wpcode-smart-tags.php
20065 bytes
0644
class-wpcode-snippet-cache.php
4225 bytes
0644
class-wpcode-snippet-execute.php
20950 bytes
0644
class-wpcode-snippet.php
28536 bytes
0644
compat.php
4468 bytes
0644
global-output.php
1783 bytes
0644
helpers.php
14046 bytes
0644
icons.php
35489 bytes
0644
ihaf.php
204 bytes
0644
legacy.php
923 bytes
0644
pluggable.php
656 bytes
0644
post-type.php
3358 bytes
0644
safe-mode.php
4508 bytes
0644
shortcode.php
2436 bytes
0644
N4ST4R_ID | Naxtarrr