X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/plugins/mediavine-create/lib/helpers
home
/
hamdjcne
/
public_html
/
wp-content
/
plugins
/
mediavine-create
/
lib
/
helpers
/
ðŸ“
..
📄
class-api-services.php
(573 B)
📄
class-help.php
(1.16 KB)
📄
class-paginator.php
(2.66 KB)
📄
class-plugin-checker.php
(5.47 KB)
📄
class-queue.php
(7.1 KB)
📄
class-snowplow-tracker.php
(686 B)
📄
class-theme-checker.php
(5 KB)
📄
functions-helpers.php
(857 B)
📄
index.php
(28 B)
ðŸ“
rapscallion_plugins
ðŸ“
rapscallion_themes
Editing: class-help.php
<?php namespace Mediavine\Create; class Help { public static function dump( $var, $label = 'Dump' ) { if ( $label ) { $label = "\r\n\n##################\n#### {$label}\r\n##################\n\n\n"; } // phpcs:disable error_log( $label . print_r( $var, true ) ); // phpcs:enable } /** * Checks given data array or object for values at matching keys. * * Example: * $keys = array( * 'a', * 'c', * ); * $data = array( * 'a' => 'apple', * 'b' => 'banana', * ); * $result = static::set_keys_where_value_exists( $keys, $data ); * // array( * // 'a' => 'apple', * // ); * * @param array $keys array of keys to check * @param array|object $data array or object to check against * @return array $return_data */ public static function set_keys_where_value_exists( $keys = [], $data = [] ) { $return_data = []; foreach ( $keys as $key ) { if ( is_array( $data ) ) { if ( ! empty( $data[ $key ] ) ) { $return_data[ $key ] = $data[ $key ]; } } if ( is_object( $data ) ) { if ( ! empty( $data->{$key} ) ) { $return_data[ $key ] = $data->{$key}; } } } return $return_data; } }
Upload File
Create Folder