function php
-
I made a child of vantage premium
all look ok
tried entering this code in child function phpadd_action( ‘wp’, ‘post_pw_sess_expire’ );
function post_pw_sess_expire() {
if ( isset( $_COOKIE[‘wp-postpass_’ . COOKIEHASH] ) )
// Setting a time of 0 in setcookie() forces the cookie to expire with the session
setcookie(‘wp-postpass_’ . COOKIEHASH, ”, 0, COOKIEPATgot this in a box
( ! ) Parse error: syntax error, unexpected end of file in C:\wamp\www\wordpress\wp-content\themes\vantage-chile-theme\functions.php on line 21
Call Stack
#
Time
Memory
Function
Location
1 0.0016 341168 {main}( ) ..\theme-editor.php:0
2 0.0027 410032 require_once( ‘C:\wamp\www\wordpress\wp-admin\admin.php’ ) ..\theme-editor.php:10
3 0.0032 428208 require_once( ‘C:\wamp\www\wordpress\wp-load.php’ ) ..\admin.php:31
4 0.0036 439168 require_once( ‘C:\wamp\www\wordpress\wp-config.php’ ) ..\wp-load.php:37
5 0.0045 537272 require_once( ‘C:\wamp\www\wordpress\wp-settings.php’ ) ..\wp-config.php:89
so I thought I would hit the back stroke delete button and update file
now I cant even get into wordpress
this just comes up on screen
- The topic ‘function php’ is closed to new replies.