Visual Composer by default doesn’t support “attach_file” type. Therefore, at any of point of time if we need to add files, we should add new attribute type for content element attributes that can attach file.
Hits: 471
Visual Composer by default doesn’t support “attach_file” type. Therefore, at any of point of time if we need to add files, we should add new attribute type for content element attributes that can attach file.
Hits: 471
Have you ever used the same template page in the multiple pages? Do you want get the list of the pages that uses same template page in the whole site? If yes, use get_pages() function to retrieve the list of pages using the same template page.
Hits: 34
With the help of array_map() and array_filter(), empty array elements can be removed recursively from the multidimensional array .
Hits: 179
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
/* * simplexml_load_file converts the xml documents into an Object * */ $source1 = simplexml_load_file("test1.xml"); /* * json_encode Returns the JSON representation of a value */ $source1 = json_encode($source1); $source2 = simplexml_load_file("test2.xml"); $source2= json_encode($source2); /* * json_decoded Decodes a JSON values * Assigning the json_decoded values in an array Object */ $sourceArrayObject[] = json_decode($source1. true); $sourceArrayObject[] = json_decode($source1, true); /* * Converting the JSON decoded array object back to the json format */ $testJsonFormat = json_encode($sourceArrayObject, JSON_PRETTY_PRINT); /* * Filepath to save the combined JSON values xml */ $filePath = __DIR__ . '/data/data.txt'; /* * saving the JSON representation of a values in a file */ file_put_contents($filePath, $testJsonFormat); |
Hits: 56
There are numerous plugins available to save and view the cf7 submission in the dashboard. If you want ignore the plugin and write your own code to save the cf7 then follow this article.
Hits: 70