Check if static block is enabled in magento

In this post we are discussing about how we can check if static block is enabled in magento
For that first we need to create an static block and please note down the block identifier, we need the block identifier to check its active or not

Now here is the code to do so

Mage::getModel('cms/block')->load('identifier')->getIsActive()

In the above code replace the identifier with the one we created

Leave a Reply

Your email address will not be published.