How to add wp_editor Dynamically

Add this to your php file wp_enqueue_editor(); Add this on your script after you load the wp_editor elements to your web page. tinymce.execCommand( ‘mceRemoveEditor’, false, ‘proj_desc’ ); tinymce.execCommand( ‘mceAddEditor’, false, ‘proj_desc’ ); quicktags({id : “proj_desc”});   Source: https://carlofontanos.com/loading-wp_editor-via-ajax/

How to Set Up Gmail SMTP

1. Enter these data. Gmail SMTP server address: smtp.gmail.com Gmail SMTP username: full Gmail address (e.g. username@gmail.com) Gmail SMTP password: Gmail password Gmail SMTP port (TLS): 587 Gmail SMTP port (SSL): 465 Gmail SMTP TLS/SSL required: yes 2. Turn on Less secure app access. Open google account settings. Click Security on the left pane. Turn on Less secure app access. Note: Turning […]

How to Determine the Current WordPress Version Used

Option #1: When logged in, go to {domainname}/wp-admin/about.php – there you can see what is the current version of your WordPress site. On that page, you can also see other information such as new releases if you’re currently using an older version. 4.6.13 – Applicable between 4.6 & 5.3 – Unable to test 5.3 – […]

How to Add Color Presets to Your Beaver Builder Editor

To add predefined colors in your beaver builder’s color picker, you have to add the ff. codes to any file that get’s executed by WordPress all the time. You can create your own custom plugin. The most common file to add it is in your theme or child theme’s functions.php. Here is the code snippet: […]

WordPress + AJAX

Action wp_ajax Always Returning 0 One of the common reason why this can happen is when the user is not logged in. Try adding the ff: add_action(‘wp_ajax_nopriv_extract-files’, ‘extractFiles’); Also, when you’re using jsonP, you cannot use type POST

Errors I Encountered When Setting Up a Magento Site

I have been using WordPress all my life (just exaggerating) in building websites, and everything that I need for a website, may it be a blog, a portfolio, or an e-commerce one, can be achieved using WordPress. Despite that, other website owners opt other CMS for several reasons. One of the most popular CMS (for […]

How to Use WP Cron

Scheduling an event in WordPress is very common. This functionality is commonly known as CRON. Here are the steps on how to can create CRON tasks. Step 1: Determine the desired recurrence There are three predefined recurrences defined by WordPress, namely: daily, twicedaily, & hourly. If you want to define your own recurrence, you can […]