I offer you an idea that I have already used something like this.
I wanted to know the sites that my plugin uses, I created a cron job allow me to send me an email every week :
add_action('init', function() {
$time = wp_next_scheduled('dro_cron_hook');
wp_unschedule_event($time, 'dro_cron_hook');
if (!wp_next_scheduled('dro_cron_hook')) {
wp_schedule_event(time(), 'everyweek', 'dro_cron_hook');
}
});
add_filter('cron_schedules', function($schedules) {
$schedules['everyweek'] = array(
'interval' => 604800
);
return $schedules;
});
add_action('dro_cron_hook', function() {
// Here you can send the email using wp_mail() and some additional data
});
Related Posts:
- How I prevent a plugin to be loaded when doing WP-CLI?
- How to include code only on specific pages?
- Simple rich text editor in Text widget?
- When can you get current page ID and initialize hooks right after?
- X-Pingback and XMLRPC
- Disable qTranslate by post type in admin + disable per page / post ID on front-end [closed]
- How get list of updates of wp site?
- Show missing Sidebar from Gutenberg admin area
- How to load different css file for different pages
- Cannot strip JW Player shortcode?
- Environment Specific Options Token
- Validation Function for URL in plugin
- Overrides Plugin Files on WordPress Themes
- Custom rewrite rule is not picked by WordPress
- How to list all active and specific shortcodes in wordpress
- How to install a plugin for a free WordPress site? [duplicate]
- Best Way to Remove WordPress Meta Box based on Post Status
- plugins_url() incorrectly returns a url with www subdomain
- Compatibility with RTL installations
- Localize Plugin Description
- Display future posts?
- Can’t find plugins in menu for wordpress 3.2?
- Variable from a plugin into a theme
- update_user_meta add value on the top on existing value
- Can a plugin still effect a site even after deletion?
- How to get variables from fucntion.php to my plugin files
- Where to access the available plugin/WordPress updates?
- How can I display a contact form for out of stock products in WooCommerce?
- How to disable specific plugin in mobile version?
- Headers already sent when I try to add headers via a shortcode
- get_post_type on post.php
- CodeColorer: Allow Some Symbols in Java Language
- Outbound Click Tracking
- How to add an automatic refresh in WordPress for a Page/Post or an embedded OneDrive/Excel HTML Code?
- WordPress Backend HA (Automatic failover)
- Customize The Events Calendar to Include an Option to Expand for More Events Listings
- Hook into existing tinyMCE button
- Does the lazyload plugin make this server disks busy?
- Load Javascript from Plugin in One Page Only?
- How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?
- Invalid plugin installation directory, Google Analytics [closed]
- Custom url rewriting
- How can I exclude a dynamic URL to show a popup created using ‘WordPress Popup’ plugin
- How can I apply a WP filter on specific plugin version
- How to create Admin Notice from Plugin with argument? [duplicate]
- Why are my WordPress store items showing up in duplicates?
- Can I do in-page changes binding events/triggers to actions in WordPress?
- Can inactive WordPress plugins still load scripts?
- Change the number of plugins counted on wp-admin/plugins.php
- How to have free shipping for WooCommerce Membership members
- Changing the Organize Series Listing Pages
- Can i use init hook for API purpose?
- JSON API Plugin not showing Attachments id reused
- What’s the right way to implement functions in footer.php
- Loading by Ajax a plugin that also uses Ajax
- how to set parent forum link to menu page?
- How can i list random author?
- Notify bar plugin not showing up
- Our plugin tags not appearing in WordPress Plugin Repository
- How to get values from network settings panel?
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- How to get saved elementor template list programmatically?
- how to validate input field in wordpress generated with wpform plugin
- Remove custom taxonomy name from the slug – Custom Post Type UI
- Conditional delete metadata does not works
- “Disable” specific plugins on certain pages
- Ability to change homepage on WordPress using API
- The function called on the wp head hook becomes null
- custom post type get_posts() function not work
- WordPress plugin download-after-email issue
- How to add defer to WordPress Plugin javascript? [duplicate]
- Powerpress upload a podcast without creating a post for it
- Remove metatag from a particular page
- How to disable/enable a plugin at a specific time
- user specific private content
- Enable plugins that are “not supported”
- Need Help Understanding Debug Log Errors
- custom/automatic export function – one post at a time?
- How to create multi-slug admin page and retrieve it with $_GET or something?
- WP-admin plugin installation via FTP silently fails on shared hosting
- Is it possible to restrict content in wordpress?
- Prefix of $wpdb does not worked and does not displayed
- Custom Widget not Available after Plugin Installation
- How to allow customers to input a text as a product variation *and* charge per character?
- Site not displaying correctly when re-directing from root to sub-directory
- Can I have a link within a WP UI Spoiler
- How to structure plugin in to functions?
- Breadcrumb is not generating the correct post page url
- Check if post was modified by editor different than post author
- Award points if a specific custom taxonomy is selected – Cubepoints
- Plugin Admin Page Ajax-Admin call returning 0, URL set correctly. Implemented localized scripts but did not fix it
- SOLVED – $wp_admin_bar and AJAX calls
- how to search through plugin in wordpress cimy-user-extra-fields?
- How to change prices per number ordered in WooCommerce [closed]
- How to filter plugin search results in wp-admin plugin search page
- How can I disable a plugin in Health Check mode if there’s a critical error?
- Automatically create WooCommerce products page by just uploading the images [closed]
- Multiple plugins settings of same developer into ONE settings page linked together
- all plug-ins load scripts on all pages
- Fields are not displayed on front end under custom php code in Advanced Custom Fields and Flexible Content field WordPress