All posts by Software Htec

What is My WordPress Site’s Login URL

I just installed WordPress script on my hosting, but I dont know the admin login URL of WordPress

Typically, you can access login page via the following URLs

  • http://www.example.com/login/
  • http://www.example.com/admin/

However if permalink  or seo friendly URL is not working, you can access login page via the following URL

  • http://www.example.com/wp-login.php
If  your WordPress was installed in a sub-folder such as /wp/

You can access login URL  via the following URLs

  • http://www.example.com/wp/login/
  • http://www.example.com/wp/wp-login.php
If your WordPress was installed on a sub-domain

You can access login URL via the following URLs

  • http://sub-domain.example.com/login/
  • http://sub-domain.example.com/wp-login.php

How Can I Disable All Magento 2 Extensions

I would like to disable all extensions, what is the simplest way for Magento 2

You can use one command line to disabled all Magento 2 extensions or custom modules

php bin/magento module:status | grep -v Magento | grep -v List | grep -v None | grep -v -e ‘^$’| xargs php bin/magento module:disable

Enable all extensions or modules

php bin/magento module:status | grep -v Magento | grep -v List | grep -v None | grep -v -e ‘^$’| xargs php bin/magento module:enable

How to Active Magento 2 Category Programmatically

How can I active a Magento 2 category programmatically based on given category ID

After load Magento 2 category object, you can use setIsActive method to active or inactive the category.

$catid = 1;
$storeid = 1;
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$categoryRepository = $objectManager->get(‘MagentoCatalogModelCategoryRepository’);
$category = $categoryRepository->get($catid , $storeid);
$category->setIsActive(true);
$categoryRepository->save($category);

WordPress › Error

There has been a critical error on this website.

Learn more about troubleshooting WordPress.