Blog

  • Akismet Alternatives

    Blocking spam on WordPress websites is heavy work. Akismet comes pre-installed on every site, but it’s not free for businesses or the only way to stop spam.

    1. OOPSpam https://www.oopspam.com/
    2. CleanTalk https://cleantalk.org/
    3. Stop Forum Spam https://www.stopforumspam.com/
    4. Project Honey Pot https://www.projecthoneypot.org/
    5. Zero Spam https://www.zerospam.org

    There are a ton of anti-spam WordPress plugins. The criteria for this list of alternatives is “offers an API.”

    Thanks to Austin and Kerch for inspiration and help creating this list.

  • TypeError: c is not a function

    If you’re building blocks for WordPress, and the error TypeError: c is not a function is logged in your browser’s developer console, you may have created a TextControl component and failed to include both value and onChange attributes.

    This code will cause the error:

    <TextControl
    	label={ __( 'Cash/trade', 'invp-payment-calculator' ) }
    	id={ 'trade' }
    	onChange={ changeTradeValue }
    </TextControl>

    This is a correct syntax:

    	label={ __( 'Cash/trade', 'invp-payment-calculator' ) }
    	id={ 'trade' }
    	value={ attributes.trade }
    	onChange={ changeTradeValue }
    </TextControl>