PHP code example of outstand / silent-update
1. Go to this page and download the library: Download outstand/silent-update library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
outstand / silent-update example snippets
add_filter( 'outstand_silent_update_post_types', function ( $post_types ) {
$post_types[] = 'page';
$post_types[] = 'my_custom_post_type';
return $post_types;
} );