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);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);| <?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.`, |
| { | |
| "apiVersion": 2, | |
| "name": "demo/content-with-sidebar", | |
| "version": "0.1.0", | |
| "title": "Content With Sidebar Block", | |
| "category": "demo", | |
| "attributes": { | |
| "mediaURL": { | |
| "type": "string", | |
| "default": "" |
const SectionSelector = ( { props } ) => {
const { attributes:{ exclude_section, section, tag, author }, setAttributes } = props;
const [ searchTerm, setSearchTerm ] = useState('');
const options = useSelect( (select) => {To Add Someone's ssh-key on the dev server
$ ssh to your server
$ cd .ssh/
$ nano authorized_keys"stats": [
{ "id":"0", "count": "22", "text": "Years of experience" },
{ "id":"1", "count": "186", "text": "Projects delivered" },
{ "id":"2", "count": "200+", "text": "Satisfied clients" }
], <div className="inner-block" key={ key } data-id={ key }>
<RichText| <?php | |
| /** | |
| * Create a user in the wordpress dashboard using the PHP in the wordpress. | |
| */ | |
| add_action('init', 'create_user_account'); | |
| function create_user_account() { | |
| $username = 'username123'; | |
| $email = 'demo@edfsdf.com'; | |
| $password = 'pasword123'; | |
| $user_id = username_exists( $username ); |
Symptoms The following message is displayed when trying to push to a Bitbucket Server repository:
error: Issuer certificate is invalid. while accessing https://@<BITBUCKET_HOST>:8443/ABC/test.git/info/refs fatal: HTTP request failed You just added a self signed certificate to Bitbucket Server and now your users are getting errors:
fatal: unable to access 'https://@<bitbucket_server>://scm///': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none Cause The Bitbucket Server certificate is not trusted by the git client.