芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/jetpack/extensions/plugins/publicize/publicize.php
is_active( 'publicize' ) && ! current_user_can( 'jetpack_activate_modules' ) ) { return; } // Connection check. if ( ( new Host() )->is_wpcom_simple() || ( ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! ( new Status() )->is_offline_mode() ) ) { // Register Publicize. Jetpack_Gutenberg::set_extension_available( 'publicize' ); // Set the republicize availability, depending on the site plan. Jetpack_Gutenberg::set_availability_for_plan( 'republicize' ); } } add_action( 'jetpack_register_gutenberg_extensions', __NAMESPACE__ . '\register_plugins' ); // Populate the available extensions with republicize. add_filter( 'jetpack_set_available_extensions', function ( $extensions ) { return array_merge( (array) $extensions, array( 'republicize', ) ); } ); /** * Publicize declares its support for the 'post' post type by default. * Let's do it here as well, when the module hasn't been activated yet. * It helps us display the Publicize UI in the editor. */ add_action( 'init', function () { if ( ! ( new Modules() )->is_active( 'publicize' ) ) { add_post_type_support( 'post', 'publicize' ); } } );