Notice: require(): Read of 1877 bytes failed with errno=12 Cannot allocate memory in /home3/freedo70/public_html/wp-settings.php on line 203
Notice: require(): Read of 1877 bytes failed with errno=12 Cannot allocate memory in /home3/freedo70/public_html/wp-settings.php on line 203
tus &&
current_user_can( 'edit_post', $post->ID )
) {
$wp_query->set( 'post_status', 'auto-draft' );
}
}
/**
* Register a block template.
*
* @since 6.7.0
*
* @param string $template_name Template name in the form of `plugin_uri//template_name`.
* @param array|string $args {
* @type string $title Optional. Title of the template as it will be shown in the Site Editor
* and other UI elements.
* @type string $description Optional. Description of the template as it will be shown in the Site
* Editor.
* @type string $content Optional. Default content of the template that will be used when the
* template is rendered or edited in the editor.
* @type string[] $post_types Optional. Array of post types to which the template should be available.
* @type string $plugin Optional. Slug of the plugin that registers the template.
* }
* @return WP_Block_Template|WP_Error The registered template object on success, WP_Error object on failure.
*/
function register_block_template( $template_name, $args = array() ) {
return WP_Block_Templates_Registry::get_instance()->register( $template_name, $args );
}
/**
* Unregister a block template.
*
* @since 6.7.0
*
* @param string $template_name Template name in the form of `plugin_uri//template_name`.
* @return WP_Block_Template|WP_Error The unregistered template object on success, WP_Error object on failure or if the
* template doesn't exist.
*/
function unregister_block_template( $template_name ) {
return WP_Block_Templates_Registry::get_instance()->unregister( $template_name );
}
Notice: require(): Read of 2887 bytes failed with errno=12 Cannot allocate memory in /home3/freedo70/public_html/wp-settings.php on line 205
Notice: require(): Read of 2887 bytes failed with errno=12 Cannot allocate memory in /home3/freedo70/public_html/wp-settings.php on line 205
Fatal error: Uncaught Error: Failed opening required '/home3/freedo70/public_html/wp-includes/theme-previews.php' (include_path='.:/opt/cpanel/ea-php82/root/usr/share/pear') in /home3/freedo70/public_html/wp-settings.php:205
Stack trace:
#0 /home3/freedo70/public_html/wp-config.php(89): require_once()
#1 /home3/freedo70/public_html/wp-load.php(50): require_once('/home3/freedo70...')
#2 /home3/freedo70/public_html/wp-blog-header.php(13): require_once('/home3/freedo70...')
#3 /home3/freedo70/public_html/index.php(17): require('/home3/freedo70...')
#4 {main}
thrown in /home3/freedo70/public_html/wp-settings.php on line 205
Fatal error: Uncaught Error: Call to a member function set() on null in /home3/freedo70/public_html/wp-includes/l10n.php:857
Stack trace:
#0 /home3/freedo70/public_html/wp-includes/l10n.php(960): load_textdomain('default', '/home3/freedo70...', 'en_GB')
#1 /home3/freedo70/public_html/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /home3/freedo70/public_html/wp-includes/l10n.php on line 857