Skip to content

newfold-labs/wp-module-coming-soon

Folders and files

NameName
Last commit message
Last commit date
Dec 14, 2023
Jan 5, 2024
Jan 5, 2024
Nov 21, 2023
Dec 13, 2023
Nov 8, 2023
Dec 14, 2023
Mar 18, 2022
Sep 29, 2023
Nov 8, 2023
Apr 19, 2023
Jan 5, 2024
Nov 21, 2023
Apr 11, 2023
Nov 8, 2023

Repository files navigation

Newfold Logo

WordPress Coming Soon Module

Version Number License

Coming Soon functionality for WordPress.

Installation

1. Add the Newfold Satis to your composer.json.

composer config repositories.newfold composer https://newfold-labs.github.io/satis/

2. Require the newfold-labs/wp-module-coming-soon package.

composer require newfold-labs/wp-module-coming-soon

3. Set strings and other options via the comingsoon index in a container.

use NewfoldLabs\WP\ModuleLoader\Container;
use function NewfoldLabs\WP\ModuleLoader\container as setContainer;

$nfd_module_container = new Container();

// Set a value - scoped to comingsoon index
$nfd_module_container->set('comingsoon', [
   'option_name'     => 'mm_coming_soon',
   'admin_screen_id' => 'app',
   'admin_app_url'   => admin_url( 'admin.php?page=app#/home' ),
   'template_h1'     => __('Coming Soon!', 'text-domain'),
   ...
]);
// assign container
setContainer( $nfd_module_container );

More on Newfold WordPress Modules