put this code in the fucntions.php
file
<?php
global $wpdb;
$allPosts = $wpdb->get_results("SELECT * FROM `wp_posts`");
foreach($allPosts as $post){
$content = RemoveShortcodes('/\[\/?et_pb.*?\]/', '', $post->post_content);
{ | |
"apiVersion": 2, | |
"name": "demo/content-with-sidebar", | |
"version": "0.1.0", | |
"title": "Content With Sidebar Block", | |
"category": "demo", | |
"attributes": { | |
"mediaURL": { | |
"type": "string", | |
"default": "" |
<?php | |
function realm_get_funfect(){ | |
$array_of_element = array( | |
`It is impossible for most people to lick their own elbow. (try it!)`, | |
`A crocodile cannot stick its tongue out.`, | |
`A shrimp's heart is in its head.`, | |
`It is physically impossible for pigs to look up into the sky.`, | |
`The "sixth sick sheik's sixth sheep's sick" is believed to be the toughest tongue twister in the English language.`, | |
`If you sneeze too hard, you could fracture a rib.`, | |
`Wearing headphones for just an hour could increase the bacteria in your ear by 700 times.`, |
put this code in the fucntions.php
file
<?php
global $wpdb;
$allPosts = $wpdb->get_results("SELECT * FROM `wp_posts`");
foreach($allPosts as $post){
$content = RemoveShortcodes('/\[\/?et_pb.*?\]/', '', $post->post_content);
By doing This you can work on the local environment easily
const LOCAL_DOMAIN = "lcoalhost/project";
const LIVE_DOMAIN = "project_url";
// changes in the Url so we can store images in one place.
add_filter('wp_get_attachment_image_src', 'rewriteImgSrc', 10, 3);
### Here is the minimul server configuration for the virtual host for the bedrock. | |
```shell | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName aquapex.localhost | |
ServerAlias www.aquapex.localhost | |
DocumentRoot /var/www/html/aquapex-wp/web |
function myFunction() {
const sheetName = "Sheet1";
const [headers, ...rows] = SpreadsheetApp.getActiveSpreadsheet()
.getSheetByName(sheetName)
.getDataRange()
.getValues();