PHP code example of mindkomm / theme-lib-404
1. Go to this page and download the library: Download mindkomm/theme-lib-404 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/ */
mindkomm / theme-lib-404 example snippets
if ( 'publish' !== $post->post_status ) {
force_404();
Timber::render( '404.twig', $context );
exit;
}