GRAYBYTE WORDPRESS FILE MANAGER9247

Server IP : 162.213.255.40 / Your IP : 216.73.216.143
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/extensions/plugins/sharing/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/jetpack/extensions/plugins/sharing//sharing.php
<?php
/**
 * Block Editor - Sharing feature.
 *
 * @package automattic/jetpack
 */

namespace Automattic\Jetpack\Extensions\Sharing;

use Jetpack_Gutenberg;

/**
 * Register Sharing plugin.
 *
 * @return void
 */
function register_plugins() {
	// Register Sharing.
	Jetpack_Gutenberg::set_extension_available( 'sharing' );
}

add_action( 'jetpack_register_gutenberg_extensions', __NAMESPACE__ . '\register_plugins' );

/**
 * The Sharing panel is only displayed for post types that support sharing.
 * The sharing module declares support for sharing for all the public post types.
 * Let's do the same thing when the module isn't active yet.
 */
add_action(
	'rest_api_init',
	function () {
		if ( ! \Jetpack::is_module_active( 'sharedaddy' ) ) {
			$post_types = get_post_types( array( 'public' => true ) );

			foreach ( $post_types as $post_type ) {
				register_rest_field(
					$post_type,
					'jetpack_sharing_enabled',
					array(
						'get_callback' => function ( array $post ) {
							if ( ! isset( $post['id'] ) ) {
								return false;
							}

							return (bool) ! get_post_meta( $post['id'], 'sharing_disabled', true );
						},
						'schema'       => array(
							'description' => __( 'Are sharing buttons enabled?', 'jetpack' ),
							'type'        => 'boolean',
						),
					)
				);
				add_post_type_support( $post_type, 'jetpack-sharing-buttons' );
			}
		}
	}
);

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
sharing.php
1.361 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF