<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[커뮤니케이션 알림 기능 기본 설정 문의]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/35855</link>
		<description><![CDATA[<p>안녕하세요</p>

<p> </p>

<p>커뮤니케이션 - SMS 알림 기능을 이용해 kboard에 글을 작성후 관리자가 댓글을 달아줬을때 문자가 발송되도록 구축중에 있습니다.</p>

<p>그런데 저만 그런건지 원래 그런건지</p>

<p>문제가 글작성시 SMS 알림받기 체크해도 최우선적으로 [cosmosfarm_members_notifications] 알림 페이지에서 따로 알림을 켜줘야</p>

<p>알림이 발송되고 있습니다.</p>

<p>기존에 스레드를 찾아보니</p>

<pre>
<code>add_action('user_register', 'my_user_register', 10, 1);
function my_user_register($user_id){
	update_user_meta($user_id, 'cosmosfarm_members_notifications_subnotify_email', '1');
}</code></pre>

<p>신규 가입시 이메일 알림을 항상 활성화 하는 코드를 찾았습니다.</p>

<p>SMS의 경우 마지막 _email 을 _sms 로 바꾸면 될까요? -&gt; 수정해서 해보니 워드프레스 테크니컬 에러 뜨네요.</p>

<p>또한 기존 유저에게 전부 활성화시킬 수 있을까요?</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요~^^

글작성시 SMS 알림받기 체크 기능은 직접 코드를 추가하신건지요?

 

아래 코드를 사용...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/35890</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>글작성시 SMS 알림받기 체크 기능은 직접 코드를 추가하신건지요?</p>

<p> </p>

<p>아래 코드를 사용하시면 사용자가 로그인할 때마다 해당 값들을 업데이트할 수 있습니다.</p>

<pre>
<code class="language-php">add_action('wp_login', 'my_wp_login', 10, 2);
function my_wp_login($user_login, $user){
	update_user_meta($user-&gt;ID, 'cosmosfarm_members_notifications_subnotify_email', '1');
	update_user_meta($user-&gt;ID, 'cosmosfarm_members_notifications_subnotify_sms', '1');
}</code></pre>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 16 Aug 2019 02:42:27 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[
add_action('user_register', 'my_user_register', 10, 1);
function my_user_register($user_id){
	up...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/35884</link>
			<description><![CDATA[<pre>
<code>add_action('user_register', 'my_user_register', 10, 1);
function my_user_register($user_id){
	update_user_meta($user_id, 'cosmosfarm_members_notifications_subnotify_email', '1');
	update_user_meta($user_id, 'cosmosfarm_members_notifications_subnotify_sms', '1');
}</code></pre>

<p> </p>

<p>이렇게 작성하니까 문제 없이 작동 되네요. 여전히 궁금한건 기존 회원들이 따로 알람 페이지 에가지 않아도 알람을 설정할수 있는지..</p>]]></description>
			<author>blo1017</author>
			<pubDate>Fri, 16 Aug 2019 00:35:42 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>