__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Plugin Name: Display Recent WordPress Posts Widget
* Description: Displays recent posts from a WordPress.com or Jetpack-enabled self-hosted WordPress site.
* Version: 1.0
* Author: Brad Angelcyk, Kathryn Presner, Justin Shreve, Carolyn Sonnek
* Author URI: https://automattic.com
* License: GPL2
* Text Domain: jetpack
*
* @package automattic/jetpack
*/
/**
* Disable direct access/execution to/of the widget code.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require __DIR__ . '/wordpress-post-widget/class.jetpack-display-posts-widget-base.php';
require __DIR__ . '/wordpress-post-widget/class.jetpack-display-posts-widget.php';
add_action( 'widgets_init', 'jetpack_display_posts_widget' );
/**
* Registers widget Jetpack_Display_Posts_Widget
*/
function jetpack_display_posts_widget() {
register_widget( 'Jetpack_Display_Posts_Widget' );
}
/**
* Cron tasks
*/
add_filter( 'cron_schedules', 'jetpack_display_posts_widget_cron_intervals' ); // phpcs:ignore WordPress.WP.CronInterval.CronSchedulesInterval
/**
* Adds 10 minute running interval to the cron schedules.
*
* @param array $current_schedules Currently defined schedules list.
*
* @return array
*/
function jetpack_display_posts_widget_cron_intervals( $current_schedules ) {
/**
* Only add the 10 minute interval if it wasn't already set.
*/
if ( ! isset( $current_schedules['minutes_10'] ) ) {
$current_schedules['minutes_10'] = array(
'interval' => 10 * MINUTE_IN_SECONDS,
'display' => 'Every 10 minutes',
);
}
return $current_schedules;
}
/**
* Execute the cron task
*/
add_action( 'jetpack_display_posts_widget_cron_update', 'jetpack_display_posts_update_cron_action' );
/**
* Run the Jetpack_Display_Posts_Widget cron task.
*/
function jetpack_display_posts_update_cron_action() {
$widget = new Jetpack_Display_Posts_Widget();
$widget->cron_task();
}
/**
* Handle activation procedures for the cron.
*
* `updating_jetpack_version` - Handle cron activation when Jetpack gets updated. It's here
* to cover the first cron activation after the update.
*
* `jetpack_activate_module_widgets` - Activate the cron when the Extra Sidebar widgets are activated.
*
* `activated_plugin` - Activate the cron when Jetpack gets activated.
*/
add_action( 'updating_jetpack_version', 'jetpack_display_posts_widget_conditionally_activate_cron' );
add_action( 'jetpack_activate_module_widgets', 'Jetpack_Display_Posts_Widget::activate_cron' );
add_action( 'activated_plugin', 'jetpack_conditionally_activate_cron_on_plugin_activation' );
/**
* Executed when Jetpack gets activated. Tries to activate the cron if it is needed.
*
* @param string $plugin_file_name The plugin file that was activated.
*/
function jetpack_conditionally_activate_cron_on_plugin_activation( $plugin_file_name ) {
if ( plugin_basename( JETPACK__PLUGIN_FILE ) === $plugin_file_name ) {
jetpack_display_posts_widget_conditionally_activate_cron();
}
}
/**
* Activates the cron only when needed.
*
* @see Jetpack_Display_Posts_Widget::should_cron_be_running
*/
function jetpack_display_posts_widget_conditionally_activate_cron() {
$widget = new Jetpack_Display_Posts_Widget();
if ( $widget->should_cron_be_running() ) {
$widget->activate_cron();
}
unset( $widget );
}
/**
* End of cron activation handling.
*/
/**
* Handle deactivation procedures where they are needed.
*
* If Extra Sidebar Widgets module is deactivated, the cron is not needed.
*
* If Jetpack is deactivated, the cron is not needed.
*/
add_action( 'jetpack_deactivate_module_widgets', 'Jetpack_Display_Posts_Widget::deactivate_cron_static' );
register_deactivation_hook( plugin_basename( JETPACK__PLUGIN_FILE ), 'Jetpack_Display_Posts_Widget::deactivate_cron_static' );
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| authors | Folder | 0755 |
|
|
| contact-info | Folder | 0755 |
|
|
| eu-cookie-law | Folder | 0755 |
|
|
| facebook-likebox | Folder | 0755 |
|
|
| flickr | Folder | 0755 |
|
|
| gallery | Folder | 0755 |
|
|
| goodreads | Folder | 0755 |
|
|
| google-translate | Folder | 0755 |
|
|
| image-widget | Folder | 0755 |
|
|
| Folder | 0755 |
|
||
| internet-defense-league | Folder | 0755 |
|
|
| migrate-to-core | Folder | 0755 |
|
|
| milestone | Folder | 0755 |
|
|
| my-community | Folder | 0755 |
|
|
| simple-payments | Folder | 0755 |
|
|
| social-icons | Folder | 0755 |
|
|
| social-media-icons | Folder | 0755 |
|
|
| top-posts | Folder | 0755 |
|
|
| wordpress-post-widget | Folder | 0755 |
|
|
| authors.php | File | 9.1 KB | 0644 |
|
| blog-stats.php | File | 5.39 KB | 0644 |
|
| class-jetpack-eu-cookie-law-widget.php | File | 10.51 KB | 0644 |
|
| class-jetpack-instagram-widget.php | File | 24.19 KB | 0644 |
|
| contact-info.php | File | 17.95 KB | 0644 |
|
| customizer-controls.css | File | 165 B | 0644 |
|
| customizer-utils.js | File | 4.07 KB | 0644 |
|
| facebook-likebox.php | File | 15.28 KB | 0644 |
|
| flickr.php | File | 7.24 KB | 0644 |
|
| gallery.php | File | 16.02 KB | 0644 |
|
| goodreads.php | File | 8.25 KB | 0644 |
|
| google-translate.php | File | 6.44 KB | 0644 |
|
| gravatar-profile.css | File | 1.23 KB | 0644 |
|
| gravatar-profile.php | File | 15.97 KB | 0644 |
|
| image-widget.php | File | 12.24 KB | 0644 |
|
| internet-defense-league.php | File | 5.65 KB | 0644 |
|
| mailchimp.php | File | 4.29 KB | 0644 |
|
| milestone.php | File | 346 B | 0644 |
|
| my-community.php | File | 11.07 KB | 0644 |
|
| rsslinks-widget.php | File | 10.6 KB | 0644 |
|
| simple-payments.php | File | 21.88 KB | 0644 |
|
| social-icons.php | File | 21.42 KB | 0644 |
|
| social-media-icons.php | File | 10.78 KB | 0644 |
|
| top-posts.php | File | 27.02 KB | 0644 |
|
| twitter-timeline-admin.js | File | 2.2 KB | 0644 |
|
| twitter-timeline.php | File | 19.9 KB | 0644 |
|
| upcoming-events.php | File | 6.47 KB | 0644 |
|
| wordpress-post-widget.php | File | 3.71 KB | 0644 |
|