display product page title in field cf7
wpcf7_add_shortcode( 'cf7_extra_fields', 'cf7_extra_fields_func', true );
function cf7_extra_fields_func( $atts ) {
$html = '';
$html .= '<input type="hidden" name="page-title" value="'.get_the_title().'" />';
$html .= '<input type="hidden" name="page-url" value="'.get_the_permalink().'" />';
return $html;
}
Also in PHP:
- create 5 rendom charactors in php
- Library not loaded: /usr/local/opt/icu4c/lib/libicuio.64.dylib Referenced from: /usr/local/bin/php
- date time H:i:s in php
- add one day in php
- check if char exists in string php
- ->format() php
- check if string contains a word php
- error_reporting e_all & e_notice not working
- check if user is on mobile php
- Codeigniter count query results
- consol log php variables
- do something after redirect php
- In AbstractMySQLDriver.php line 128: An exception occurred in driver: could not find driver
- failed to open stream: no such file or directory php
- add factory data laravel
- clear route cache laravel
- am pm in php
- dompdf/dompdf v1.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Main features of php
- errors register
- array_reverse function in php
- add month from date php
- + php quantifer
- add class to body class wordpress